/* ==========================================================================
   Dönermap Hamburg — Base
   Light, friendly theme: the map is the backdrop, not a dark box.
   ========================================================================== */

:root {
  --bg: #f6f3ec;
  --bg-soft: #efebe1;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.78);
  --line: rgba(28, 28, 30, 0.1);
  --text: #1c1c1e;
  --text-dim: rgba(28, 28, 30, 0.64);
  --text-faint: rgba(28, 28, 30, 0.42);
  --accent: #ff3d3d;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 61, 61, 0.12);
  --good: #2fa864;
  --good-soft: rgba(47, 168, 100, 0.14);
  --bad: #e0453f;
  --bad-soft: rgba(224, 69, 63, 0.12);
  --untested: #9b9b93;
  --untested-soft: rgba(28, 28, 30, 0.08);
  --lime: #cfe61a;
  --font-display: "Bebas Neue", "Manrope", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Critically-damped-feeling ease-out — used for anything not driven live by a gesture */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.4, 0, 0.2, 1);
  --response-fast: 0.12s;
  --response: 0.3s;
  --response-slow: 0.4s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}

/* Reduced motion: swap spring/slide motion for a short cross-fade, drop overshoot */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    scroll-behavior: auto !important;
  }
  .shop-card:hover,
  .search-bar button:hover,
  .btn-mini:hover { transform: none !important; }
  .maplibregl-popup { animation: popup-fade 150ms ease !important; }
  .doener-marker:hover .doener-marker-avatar, .doener-marker:hover .doener-marker-dot,
  .doener-marker:active .doener-marker-avatar, .doener-marker:active .doener-marker-dot { transform: none !important; }
}

@keyframes popup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reduced transparency: make floating chrome solid instead of blurred glass */
@media (prefers-reduced-transparency: reduce) {
  .site-nav, .map-badge, .map-legend, .hero-card, .maplibregl-popup-content {
    backdrop-filter: none !important;
    background: var(--bg-card) !important;
  }
}

/* Increased contrast: near-solid chrome with a defined border */
@media (prefers-contrast: more) {
  .site-nav, .map-badge, .map-legend, .shop-card, .search-bar, .martin-tip, .hero-card {
    background: var(--bg-card) !important;
    border-color: rgba(28, 28, 30, 0.35) !important;
  }
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; display: block; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
/* Translucent material, not an opaque bar: the map scrolls under it. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Scroll-edge effect instead of a hard 1px divider: a soft fade where content meets chrome */
.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(28, 28, 30, 0.06), transparent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-logo .pin {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.nav-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--lime);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-dim);
}

.nav-links a { transition: color var(--response-fast) var(--ease-press); }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero (map as backdrop) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
}

.hero-map-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#map { position: absolute; inset: 0; background: var(--bg-soft); }

/* Gentle fade so the hero card and floating chrome stay legible over the map */
.hero-map-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(246, 243, 236, 0.15) 0%, rgba(246, 243, 236, 0.05) 40%, rgba(246, 243, 236, 0.65) 100%),
    linear-gradient(to right, rgba(246, 243, 236, 0.55) 0%, rgba(246, 243, 236, 0.05) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
  /* This wrapper is full-width (max-width: 1180px) so it can position the card, but the
     card itself only fills part of that box. Without this, the empty space beside the
     card silently ate clicks/drags meant for the map underneath it. */
  pointer-events: none;
}

/* The content lives in a floating card over the map, like a search panel over Apple Maps */
.hero-card {
  pointer-events: auto;
  max-width: 560px;
  background: var(--bg-card-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  padding: 36px 36px 30px;
  box-shadow: 0 24px 60px rgba(28, 28, 30, 0.14);
}

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 61, 61, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 0.98;
  /* Tracking is size-specific: large display text wants negative tracking. Using em
     means it tightens automatically as the clamp scales the font up. */
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  color: var(--text);
}

.hero h1 .accent { color: var(--accent); }

/* Mobile-only escape hatches between the search card and a full view of the map —
   hidden by default (and out of a11y focus order) at desktop widths, where the map
   is already fully visible beside the card. Made visible in the max-width:640px
   block below. */
.map-toggle-btn,
.map-search-pill {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.map-toggle-btn {
  flex-shrink: 0;
  margin-top: 6px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 61, 61, 0.25);
}

.map-search-pill {
  /* Fixed, not sticky: .hero has overflow:hidden (to crop the backdrop map/figure), which
     would make a sticky child stick only within .hero's own box instead of the viewport —
     since .hero never scrolls itself, that reads as not sticking at all. */
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 108px;
  z-index: 6;
  /* Lives inside .hero-floating-chrome, which is pointer-events:none by default so the map
     underneath stays draggable through its empty space — needs its own override back on. */
  pointer-events: auto;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(28, 28, 30, 0.18);
}

.hero p.lede {
  max-width: 480px;
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--text-dim);
}

/* Search bar */
.search-bar {
  margin: 26px 0 0;
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  transition: border-color var(--response-fast) var(--ease-press), box-shadow var(--response-fast) var(--ease-press);
}

.search-bar:focus-within {
  border-color: rgba(255, 61, 61, 0.5);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
}

.search-bar input::placeholder { color: var(--text-faint); }

.search-bar button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 12px;
  padding: 0 22px;
  cursor: pointer;
  /* hover moves on the slower "response" curve; press feedback is instant and separate */
  transition: transform var(--response) var(--ease), opacity var(--response) var(--ease);
}

.search-bar button:hover { transform: translateY(-1px); opacity: 0.92; }

/* Feedback lives on the press (pointer-down), not on release — and it's instant */
.search-bar button:active,
.tip-refresh:active,
.btn-mini:active {
  transform: scale(0.96);
  transition: transform var(--response-fast) var(--ease-press);
}

.search-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Martin tip bubble */
.martin-tip {
  margin: 22px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}

.martin-tip img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.martin-tip .tip-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.martin-tip .tip-text {
  font-size: 14px;
  color: var(--text);
  transition: opacity var(--response) var(--ease), transform var(--response) var(--ease);
}

.martin-tip .tip-text.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}

.martin-tip .tip-refresh {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  align-self: center;
  transition: color var(--response-fast) var(--ease-press), border-color var(--response-fast) var(--ease-press);
}

.martin-tip .tip-refresh:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Floating map chrome (badge + legend, over the hero map) ---------- */
.hero-floating-chrome {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Martin, standing on the map, pointing at a pin — ties the character to the search concept */
.hero-figure {
  position: absolute;
  right: 6%;
  bottom: 0;
  height: 64%;
  max-height: 460px;
  width: auto;
  filter: drop-shadow(0 20px 30px rgba(28, 28, 30, 0.22));
  animation: figure-materialize var(--response-slow) var(--ease) both;
  animation-delay: 0.1s;
}

@keyframes figure-materialize {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.map-badge {
  position: absolute;
  top: 96px;
  right: 24px;
  z-index: 5;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  box-shadow: 0 8px 20px rgba(28, 28, 30, 0.08);
}

.map-legend {
  position: absolute;
  top: 148px;
  right: 24px;
  z-index: 5;
  pointer-events: auto;
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  box-shadow: 0 8px 20px rgba(28, 28, 30, 0.08);
}

.map-legend span { display: flex; align-items: center; gap: 6px; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.good { background: var(--good); }
.dot.mid { background: var(--accent-2); }
.dot.bad { background: var(--bad); }
.dot.untested { background: var(--untested); }

/* Custom marker: a round avatar with a colored verdict ring + a small pin tail,
   so you can tell at a glance where a shop is AND how it rated — without it
   turning into a wall of full character illustrations across the map. */
.doener-marker {
  width: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom center;
  /* No transition on this element: MapLibre re-sets its transform (translate) on every
     frame while panning/dragging to keep it glued to its geo position. A transition here
     would animate each of those updates instead of snapping instantly, reading as the
     marker lagging behind the drag. Hover/press feedback lives on the child avatar below
     instead, which MapLibre never touches. */
}

.doener-marker-avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--good);
  box-shadow: 0 3px 10px rgba(28, 28, 30, 0.35);
  transition: transform var(--response-fast) var(--ease-press);
}

.doener-marker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doener-marker-tail {
  width: 0;
  height: 0;
  margin-top: -1px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--good);
  filter: drop-shadow(0 2px 2px rgba(28, 28, 30, 0.25));
}

.doener-marker.mid .doener-marker-avatar { border-color: var(--accent-2); }
.doener-marker.mid .doener-marker-tail { border-top-color: var(--accent-2); }
.doener-marker.bad .doener-marker-avatar { border-color: var(--bad); }
.doener-marker.bad .doener-marker-tail { border-top-color: var(--bad); }

/* Untested shops (imported locations Martin hasn't reviewed yet): a small plain
   dot, not a face — deliberately less prominent than tested markers so the map
   doesn't turn into 285 identical avatar pins. */
.doener-marker.untested {
  width: 14px;
}

.doener-marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--untested);
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(28, 28, 30, 0.3);
  transition: transform var(--response-fast) var(--ease-press);
}

.popup-shop-verdict.untested { background: var(--untested-soft); color: var(--untested); }
.popup-text-untested .popup-shop-name { margin-bottom: 6px; }

/* Grow from the bottom tip (the actual pinned coordinate), not the center. Targets the
   child avatar/dot, not .doener-marker itself — see note above on why. */
.doener-marker:hover .doener-marker-avatar,
.doener-marker:hover .doener-marker-dot { transform: scale(1.1); }
.doener-marker:active .doener-marker-avatar,
.doener-marker:active .doener-marker-dot { transform: scale(0.94); }

/* Materialize, don't just fade: the popup arrives as a real surface (blur + scale together).
   The scale/translate animation must live on -content, never on .maplibregl-popup itself —
   MapLibre positions the popup via its OWN inline `transform` (translate to the map pixel),
   and a CSS animation on the same property/element permanently overrides that with its own
   `to` keyframe, snapping every popup to the map's top-left corner regardless of click. */
.maplibregl-popup {
  animation: popup-fade-in var(--response) var(--ease) both;
  /* .hero-map-scrim (the gradient that fades the map near the card) is a *later* sibling
     of #map with no z-index of its own, so — same stacking context, plain DOM order — it
     was painting on top of the popup too, tinting it a hazy off-white instead of solid
     white. An explicit z-index here beats that auto-stacked sibling regardless of order. */
  z-index: 5;
}

@keyframes popup-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popup-materialize {
  from { transform: scale(0.92) translateY(4px); }
  to { transform: scale(1) translateY(0); }
}

.maplibregl-popup-content {
  animation: popup-materialize var(--response) var(--ease) both;
  /* Solid, not glass: over the busy multicolor map, a translucent card read as a hazy
     gray smudge instead of standing out. A flat opaque card (like the shop-card grid) pops. */
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(28, 28, 30, 0.14);
  font-family: var(--font-body);
  padding: 14px !important;
  box-shadow: 0 16px 40px rgba(28, 28, 30, 0.28);
  position: relative;
  overflow: visible !important;
  min-width: 260px;
}

/* Full-body figure docked in the popup's empty right side — not a tiny cropped
   avatar, the whole character, so the card reads as "Martin standing next to
   his verdict" rather than a generic info card. */
.popup-figure {
  position: absolute;
  right: 2px;
  bottom: 0;
  height: 152px;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(28, 28, 30, 0.25));
}

.popup-text {
  padding-right: 92px;
}

.popup-text-untested {
  padding-right: 0;
  max-width: 220px;
}

.maplibregl-popup-tip { border-top-color: rgba(255, 255, 255, 0.9) !important; border-bottom-color: rgba(255, 255, 255, 0.9) !important; }
.maplibregl-popup-close-button {
  color: var(--text-dim) !important;
  font-size: 18px !important;
  transition: color var(--response-fast) var(--ease-press);
}
.maplibregl-popup-close-button:hover { color: var(--text) !important; }

.popup-shop-name { font-weight: 700; font-size: 15px; }
.popup-shop-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.popup-shop-verdict {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.popup-shop-verdict.good { background: var(--good-soft); color: var(--good); }
.popup-shop-verdict.mid { background: var(--accent-soft); color: var(--accent-2); }
.popup-shop-verdict.bad { background: var(--bad-soft); color: var(--bad); }

.popup-note {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}

.popup-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Shop list ---------- */
.list-section { padding: 48px 0 64px; background: var(--bg); }

.list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.list-header h2 {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.list-header p { font-size: 13px; color: var(--text-faint); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(28, 28, 30, 0.04);
  transition: transform var(--response) var(--ease), border-color var(--response) var(--ease), box-shadow var(--response) var(--ease);
  animation: card-materialize var(--response-slow) var(--ease) both;
}

.shop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,61,61,0.3);
  box-shadow: 0 10px 24px rgba(28, 28, 30, 0.1);
}

/* Press feedback is instant and overrides the slower hover lift while held */
.shop-card:active {
  transform: translateY(-1px) scale(0.99);
  transition: transform var(--response-fast) var(--ease-press);
}

@keyframes card-materialize {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.shop-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.shop-card h3 { font-size: 17px; font-weight: 700; color: var(--text); }

.shop-card .district { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 2px 10px 2px 2px;
  white-space: nowrap;
}
.verdict-badge.good { background: var(--good-soft); color: var(--good); }
.verdict-badge.mid { background: var(--accent-soft); color: var(--accent-2); }
.verdict-badge.bad { background: var(--bad-soft); color: var(--bad); }
/* No figure image on this one, so it needs even padding, not the figure's left inset */
.verdict-badge.untested { background: var(--untested-soft); color: var(--untested); padding: 4px 10px; }

.verdict-figure {
  height: 22px;
  width: 22px;
  object-fit: contain;
  object-position: top center;
}

/* Researched-but-unreviewed card: same shape, quieter — no rating row, dashed border
   signals "incomplete" rather than "rated poorly" */
.shop-card-untested {
  border-style: dashed;
}
.shop-card-untested .note { margin-top: 8px; }

.shop-card .ratings {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 10px 0;
}

.shop-card .ratings strong { color: var(--text); }

.shop-card p.note {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.shop-card-actions {
  display: flex;
  gap: 10px;
}

.btn-mini {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: color var(--response-fast) var(--ease-press), border-color var(--response-fast) var(--ease-press);
}

.btn-mini.video {
  background: var(--accent-soft);
  border-color: rgba(255,61,61,0.25);
  color: var(--accent);
}

/* Not a link — nothing to click yet, so it shouldn't look like the red CTA beside it */
.btn-mini.video-pending {
  background: transparent;
  color: var(--text-faint);
  cursor: default;
}

.btn-mini:hover { color: var(--text); border-color: var(--accent); }

/* placeholder note for demo data */
.demo-note {
  max-width: 1180px;
  margin: 0 auto 8px;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg);
}

/* ---------- Footer ---------- */
.dm-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 32px 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-card { max-width: 100%; border-radius: 22px; padding: 26px 22px 22px; }
  /* The card is tall enough on phone screens (stacked search bar, tip box, etc.) to cover
     almost the entire map backdrop, leaving only a sliver behind the badge/legend — the map
     read as decoration, not as something you could drag. Give it a real, dedicated, touchable
     strip above the card instead of letting the card swallow it. */
  .hero-floating-chrome { position: static; min-height: 260px; }
  .hero-map-layer, #map { bottom: auto; height: 320px; }
  .map-badge, .map-legend { position: static; margin: 10px 24px 0; width: fit-content; }
  /* Absolutely positioned against the whole (now much taller) .hero, so it no longer has
     room to make sense at phone widths — the tip-box avatar already carries Martin here. */
  .hero-figure { display: none; }
  .search-bar { flex-direction: column; }
  .martin-tip { flex-direction: column; }
  .martin-tip .tip-refresh { align-self: flex-start; margin-left: 0; }
  /* The 3-link nav plus logo/badge don't fit one row at phone widths — wrap instead of
     squeezing/overflowing (which forced a horizontal scrollbar on the whole page). */
  .site-nav { flex-wrap: wrap; row-gap: 8px; }
  .nav-links { gap: 16px; font-size: 13px; }

  /* Tap-to-clear-the-card map browsing. Tapping the map background (a marker click
     never reaches this — markers live outside the canvas MapLibre listens on) or the
     "Karte" button switches to a near-full-height map with only a small fixed "PLZ
     eingeben" pill left on top, so it's reachable when the search card comes back.
     The toggle button only needs showing here — it's inside .hero-card, so it's
     already hidden along with the rest of the card in map-only mode below. */
  .map-toggle-btn { display: inline-flex; }
  .hero.map-only .map-search-pill { display: inline-flex; }

  .hero.map-only .hero-card { display: none; }
  .hero.map-only .hero-floating-chrome { min-height: auto; }
  .hero.map-only .hero-map-layer,
  .hero.map-only #map { height: auto; bottom: 0; }
  .hero.map-only { min-height: calc(100vh - 110px); }
}

/* ==========================================================================
   Bestenliste, FAQ und Ladenseiten — die Abschnitte, die auch ohne
   JavaScript im HTML stehen, damit Google sie sicher liest.
   ========================================================================== */

.rank-section { padding: 56px 0 8px; background: var(--bg); }
.faq-section { padding: 40px 0 56px; background: var(--bg); }

.rank-section h2,
.faq-section h2 {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-lede {
  max-width: 62ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

.rank-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--untested);
  border-radius: 16px;
  padding: 16px 18px;
}
.rank-item.good { border-left-color: var(--good); }
.rank-item.mid { border-left-color: var(--accent-2); }
.rank-item.bad { border-left-color: var(--bad); }

.rank-pos {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--text-faint);
  min-width: 28px;
}

.rank-body { flex: 1; min-width: 0; }
.rank-body h3 { font-size: 17px; font-weight: 800; }
.rank-body h3 a { color: var(--text); }
.rank-body h3 a:hover { color: var(--accent); }
.rank-meta { font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.rank-note { font-size: 14px; line-height: 1.55; color: var(--text-dim); margin-top: 8px; }

.rank-score {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.rank-score small { font-size: 14px; color: var(--text-faint); }

.faq-list { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.faq-item { max-width: 68ch; }
.faq-item h3 { font-size: 16px; font-weight: 800; color: var(--text); }
.faq-item p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin-top: 6px; }

/* --- Einzelne Ladenseite ------------------------------------------------ */

.shop-page { background: var(--bg); padding: 32px 0 64px; min-height: 70vh; }

.crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 4px; }

.shop-detail { max-width: 68ch; }
.shop-detail .verdict-badge { padding: 4px 12px; }
.shop-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 12px;
  color: var(--text);
}
.shop-detail h2 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 32px;
}
.shop-detail-meta { font-size: 15px; color: var(--text-dim); margin-top: 6px; }

.shop-detail-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.shop-detail-score strong { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--text); }
.shop-detail-score span { font-size: 18px; color: var(--text-faint); }
.shop-detail-score em { font-style: normal; font-size: 13px; color: var(--text-faint); margin-left: 10px; }

.shop-detail-note { font-size: 17px; line-height: 1.65; color: var(--text); margin-top: 10px; }

.shop-page .shop-card-actions { display: flex; gap: 10px; margin-top: 24px; }

.shop-detail-links { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.shop-detail-links a { color: var(--text); font-weight: 700; font-size: 15px; }
.shop-detail-links a:hover { color: var(--accent); }
.shop-detail-links span { font-size: 13px; color: var(--text-faint); margin-left: 6px; }

.shop-detail-back { margin-top: 28px; font-size: 14px; }
.shop-detail-back a { color: var(--accent); font-weight: 700; }

@media (max-width: 640px) {
  .rank-item { gap: 12px; padding: 14px; }
  .rank-pos { font-size: 20px; min-width: 20px; }
  .rank-score { font-size: 22px; }
  .rank-section h2, .faq-section h2 { font-size: 28px; }
}

/* --- Rechtliches (Datenschutz/Impressum) -------------------------------- */

.legal { max-width: 72ch; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-lede { font-size: 15px; color: var(--text-dim); margin-top: 8px; }
.legal h2 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 36px;
}
.legal h3 { font-size: 16px; font-weight: 800; color: var(--text); margin-top: 22px; }
.legal p { font-size: 15px; line-height: 1.65; color: var(--text-dim); margin-top: 10px; }
.legal p strong { color: var(--text); }
.legal a { color: var(--accent); font-weight: 600; }
.legal code {
  font-size: 13px;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--text);
}
.legal-note { font-size: 13px !important; color: var(--text-faint) !important; }
