/* ==========================================================================
   GünstigTanken – Stylesheet (mobile first)
   ========================================================================== */
:root {
  /* MEKSOFT-Farbwelt */
  --brand-900: #071450;
  --brand-800: #0A1B65;
  --brand-700: #142C8C;
  --accent:    #FD7E14;
  --accent-2:  #FF5A36;
  --accent-dk: #E8590C;
  --accent-grad: linear-gradient(90deg, var(--accent), var(--accent-2));
  --brand-500: #E8590C;   /* Links & Akzent-Icons */
  --brand-400: #FD7E14;   /* Hervorhebungen */
  --brand-50:  #FFF1E6;
  --on-dark-muted: #C3CAE6;

  --bg: #F4F6FC;
  --surface: #ffffff;
  --surface-2: #F8F9FD;
  --text: #1E2753;
  --muted: #6B7290;
  --border: #E8EBF4;
  --ring: rgba(253, 126, 20, .36);

  --low: #15803d;   --low-bg: #dcfce7;
  --mid: #a16207;   --mid-bg: #fef3c7;
  --high: #b91c1c;  --high-bg: #fee2e2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 27, 101, .06), 0 4px 16px rgba(10, 27, 101, .08);
  --shadow-lg: 0 10px 40px rgba(10, 27, 101, .18);
  --font: "Inter", "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050c33;
    --surface: #0c1648;
    --surface-2: #111d58;
    --text: #E8EBF4;
    --muted: #9BA4CC;
    --border: #1d2a6b;
    --brand-500: #FFB37A;
    --low: #4ade80;   --low-bg: rgba(34, 197, 94, .14);
    --mid: #fbbf24;   --mid-bg: rgba(251, 191, 36, .13);
    --high: #f87171;  --high-bg: rgba(248, 113, 113, .13);
    --brand-50: rgba(253, 126, 20, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand-500); }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
button, input, select { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); margin: 4px 0 0; font-size: .925rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--brand-800); color: #fff;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.2rem; letter-spacing: -.01em; }
.logo b { color: var(--brand-400); }
.logo-mark { width: 32px; height: 32px; }
.header-nav { display: flex; gap: 4px; }
.header-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .925rem; padding: 8px 10px; border-radius: 8px; }
.header-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-header { border-bottom: 3px solid transparent; border-image: var(--accent-grad) 1; }

/* ---------- Hero / Suche ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(253,126,20,.28), transparent 60%),
    radial-gradient(800px 300px at 0% 110%, rgba(91,124,255,.25), transparent 60%),
    linear-gradient(180deg, var(--brand-800), var(--brand-900));
  color: #fff; padding: 36px 0 56px;
}
.hero h1 { font-size: clamp(1.75rem, 6vw, 2.9rem); letter-spacing: -.02em; font-weight: 800; }
.lead { color: var(--on-dark-muted); margin: 10px 0 24px; font-size: 1.05rem; max-width: 560px; }
.hero--compact { padding: 16px 0 40px; }

.search-card {
  background: var(--surface); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; display: grid; gap: 12px;
}
.search-row { display: grid; gap: 10px; }
.field { position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.field input {
  width: 100%; height: 52px; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 0 52px 0 44px; background: var(--surface-2); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); }
.field input::-webkit-search-cancel-button { display: none; }
.btn-geo {
  position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-500); cursor: pointer; display: grid; place-items: center;
}
.btn-geo svg { width: 20px; height: 20px; }
.btn-geo.is-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; text-decoration: none; transition: transform .08s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 18px rgba(253,126,20,.3); }
.btn-primary:hover { background: linear-gradient(90deg, var(--accent-dk), var(--accent-2)); }

.search-options { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.segmented {
  display: flex; border: 0; margin: 0; padding: 4px; gap: 4px; min-width: 0;
  background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); flex: 1 1 100%;
}
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: block; text-align: center; padding: 9px 6px; border-radius: 9px;
  font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s;
}
.segmented input:checked + span { background: var(--brand-800); color: #fff; box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--ring); }
.select { position: relative; flex: 1 1 100%; }
.select select {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
  padding: 0 40px 0 14px; font-weight: 600; font-size: .925rem; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}

/* Autocomplete */
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto;
}
.suggestions li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.suggestions li small { color: var(--muted); }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--brand-50); }

/* ---------- Alerts ---------- */
.alert { margin: -20px 0 16px; position: relative; background: var(--high-bg); color: var(--high); border-radius: 12px; padding: 14px 16px; font-weight: 500; }

/* ---------- Results ---------- */
.results { margin-top: -24px; position: relative; padding-bottom: 40px; }
.results-head {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.results-head h1 { font-size: 1.35rem; letter-spacing: -.01em; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.stat {
  background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-value sup { font-size: .6em; }
.stat-hint { font-size: .72rem; color: var(--muted); }
.stat--best { background: var(--brand-800); color: #fff; }
.stat--best .stat-label { color: var(--on-dark-muted); }
.stat--best .stat-value { color: var(--brand-400); }
.trend { font-size: .72rem; font-weight: 600; }
.trend.down { color: #4ade80; }
.trend.up { color: #fca5a5; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 12px; }
.chips { display: flex; gap: 6px; }
.chip {
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.chip.is-active { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.toggle { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: .875rem; font-weight: 600; padding: 6px 4px; }
.toggle-track { width: 40px; height: 24px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.toggle.is-on .toggle-track { background: var(--accent); }
.toggle.is-on .toggle-thumb { transform: translateX(16px); }

.view-switch { display: flex; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.view-switch button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.view-switch button[aria-selected="true"] { background: var(--brand-800); color: #fff; }

.results-layout { display: grid; gap: 16px; }
.results-layout[data-view="list"] .map-wrap { display: none; }
.results-layout[data-view="map"] .station-list { display: none; }

.station-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.station {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: border-color .15s, transform .15s;
}
.station.is-best { border-color: var(--brand-400); }
.station.is-active { border-color: var(--brand-700); transform: translateY(-1px); }
.station.is-closed { opacity: .62; }
.station-rank {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .85rem; border: 1px solid var(--border);
}
.station.is-best .station-rank { background: var(--accent-grad); color: #fff; border-color: var(--accent); }
.station-main { min-width: 0; }
.station-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.station-title h2 { font-size: 1.02rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.station-addr { margin: 2px 0 6px; color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-meta { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); align-items: center; }
.status { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--low); }
.status.closed { color: var(--high); }
.diff { color: var(--muted); }
.badge { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge--best { background: var(--accent-grad); color: #fff; }

.station-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.price {
  display: flex; align-items: baseline; gap: 3px; padding: 6px 10px; border-radius: 10px;
  font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.price span { font-size: 1.4rem; line-height: 1; }
.price sup { font-size: .62em; }
.price small { font-size: .7rem; font-weight: 600; opacity: .75; }
.p-low  { background: var(--low-bg);  color: var(--low); }
.p-mid  { background: var(--mid-bg);  color: var(--mid); }
.p-high { background: var(--high-bg); color: var(--high); }
.station-actions { display: flex; gap: 6px; }
.btn-icon {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-route { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }

.map-wrap { position: relative; }
.map { height: calc(100vh - var(--header-h) - 140px); min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 1; }
.pin {
  background: var(--brand-800); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 7px; border-radius: 8px;
  white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); position: relative; transform: translate(-50%, -100%);
  display: inline-block; font-family: var(--font); border: 2px solid #fff;
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.pin.best { background: var(--accent-grad); color: #fff; }
.pin.closed { background: #6b7280; }
.pin.active { transform: translate(-50%, -100%) scale(1.15); z-index: 1000; }
.pin-icon { background: none; border: 0; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(59,130,246,.25); }

.empty { background: var(--surface); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.empty p { margin: 0 0 6px; }

/* ---------- Sections ---------- */
.section { padding: 32px 16px 8px; }
.section-title { font-size: 1.35rem; margin-bottom: 14px; letter-spacing: -.01em; }
.city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.city-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid transparent;
}
.city-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-card svg { width: 18px; height: 18px; color: var(--brand-500); flex-shrink: 0; }
.city-card:hover { border-color: var(--brand-400); }
.tips { display: grid; gap: 12px; }
.tip { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tip-icon { font-size: 1.6rem; margin-bottom: 8px; }
.tip h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tip p { margin: 0; color: var(--muted); font-size: .925rem; }

/* ---------- Content pages ---------- */
.page { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; margin: 24px auto 40px; max-width: 820px; }
.page h1 { font-size: 1.6rem; margin-bottom: 16px; }
.page h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.page h2 { padding-top: 14px; border-top: 1px solid var(--border); }
.page h1 + .muted + h2 { border-top: 0; }
.page h3 { font-size: 1rem; margin: 16px 0 4px; }
.page p, .page li { color: var(--text); overflow-wrap: anywhere; }
.page ul { padding-left: 20px; margin: 8px 0; }
.page li { margin: 4px 0; }
.page .note { background: var(--mid-bg); color: var(--mid); padding: 10px 14px; border-radius: 10px; font-size: .9rem; }

/* ---------- Modal ---------- */
.modal {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: 100%; max-width: 480px; margin: auto auto 0; max-height: 90vh;
}
.modal::backdrop { background: rgba(5, 16, 63, .6); backdrop-filter: blur(2px); }
.modal-inner {
  background: var(--surface); border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal[open] .modal-inner { animation: sheet .22s ease-out; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.modal-close {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--surface-2); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.detail h3 { font-size: 1.25rem; padding-right: 40px; }
.detail-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.detail-prices div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; }
.detail-prices small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.detail-prices strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.detail .btn { width: 100%; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: var(--on-dark-muted); margin-top: 40px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .875rem; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 4px 0 0; }
.site-footer a { color: #FFB37A; }
.footer-inner { display: grid; gap: 16px; }
.source { font-size: .8rem; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-credit {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; color: rgba(255,255,255,.6);
}
.footer-credit a { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.footer-credit a:hover { color: var(--brand-400); }


/* ---------- Sprachumschalter ---------- */
.header-right { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch a { color: var(--on-dark-muted); text-decoration: none; font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; letter-spacing: .03em; }
.lang-switch a.is-active { background: var(--accent-grad); color: #fff; }
.lang-switch a:not(.is-active):hover { color: #fff; }
@media (max-width: 480px) { .header-nav { display: none; } }

/* ---------- Letzte Suche ---------- */
.last-search { margin-top: 12px; color: var(--on-dark-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.last-search a { color: #fff; font-weight: 700; text-decoration: none; background: rgba(255,255,255,.1); padding: 5px 12px; border-radius: 999px; }
.last-search a:hover { background: rgba(255,255,255,.18); }
.link-btn { background: none; border: 0; padding: 0; color: #FFB37A; text-decoration: underline; cursor: pointer; font-size: .85rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-500); }

/* ---------- SEO-Inhalte ---------- */
.seo-block { padding-top: 8px; }
.seo-intro { color: var(--muted); max-width: 820px; margin: 0 0 24px; }
.faq { display: grid; gap: 8px; margin-bottom: 28px; }
.faq details { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.link-cols { display: grid; gap: 8px 32px; }
.link-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.link-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.link-list a:hover { color: var(--brand-500); text-decoration: underline; }
.link-list small { color: var(--muted); }
.link-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.all-cities { margin-top: 16px; }
.all-cities summary { cursor: pointer; font-weight: 700; color: var(--brand-500); padding: 8px 0; }
.all-cities .link-list { margin-top: 10px; font-size: .9rem; }
@media (min-width: 640px) {
  .link-list--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all-cities .link-list--cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .link-cols { grid-template-columns: 1fr 2fr; }
  .all-cities .link-list--cols { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat--best { grid-column: span 2; }
  .price span { font-size: 1.2rem; }
  .station { grid-template-columns: 1fr auto; }
  .station-rank { display: none; }
}

@media (min-width: 640px) {
  .search-card { padding: 16px; }
  .search-row { grid-template-columns: 1fr auto; }
  .segmented { flex: 0 1 auto; }
  .segmented span { padding: 9px 16px; }
  .select { flex: 0 0 180px; }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tips { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 16px; }
  .stat-value { font-size: 1.6rem; }
  .station { padding: 16px 18px; }
  .station-side { flex-direction: row; align-items: center; gap: 14px; }
  .station-title h2 { font-size: 1.1rem; }
  .modal { margin: auto; }
  .modal-inner { border-radius: 20px; padding: 26px 24px; }
}

@media (min-width: 1000px) {
  .hero { padding: 64px 0 84px; }
  .hero--compact { padding: 22px 0 48px; }
  .city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .view-switch { display: none; }
  .results-layout, .results-layout[data-view] { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; }
  .results-layout .station-list, .results-layout .map-wrap { display: grid !important; }
  .results-layout .map-wrap { display: block !important; position: sticky; top: calc(var(--header-h) + 16px); }
  .results-head h1 { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr 1.4fr auto; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
