/* ==================== ZigFinder: Design System ==================== */

:root {
  --bg: #08090a;
  --bg-alt: #fbfbfd;
  --bg-alt-2: #f5f5f7;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-section: #0d0e10;
  --bg-veil: rgba(8, 9, 10, 0.82);
  --surface-section-veil: rgba(13, 14, 16, 0.82);
  --text: #f5f5f7;
  --text-dark: #1d1d1f;
  --muted: #86868b;
  --muted-dark: #6e6e73;
  --accent: #cd9a4d;
  --accent-bright: #e6b56a;
  --on-accent: #0a0a0c;
  --border: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-dark: rgba(0, 0, 0, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Gestaffelter Einflug für gruppierte Elemente (zeigt Zusammengehörigkeit) */
.stats-inner .stat:nth-child(1) { transition-delay: 0s; }
.stats-inner .stat:nth-child(2) { transition-delay: 0.08s; }
.stats-inner .stat:nth-child(3) { transition-delay: 0.16s; }
.stats-inner .stat:nth-child(4) { transition-delay: 0.24s; }
.bento-grid .bento-tile:nth-child(1) { transition-delay: 0s; }
.bento-grid .bento-tile:nth-child(2) { transition-delay: 0.1s; }
.bento-grid .bento-tile:nth-child(3) { transition-delay: 0.2s; }
.bento-grid .bento-tile:nth-child(4) { transition-delay: 0.3s; }

/* ==================== Hintergrund-Atmosphäre (Rauch/Ember, scroll-gekoppelt) ==================== */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.atmo-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}
.atmo-blob--1 {
  width: 640px; height: 640px;
  left: -10%; top: -5%;
  background: radial-gradient(circle, rgba(205, 154, 77, 0.5) 0%, transparent 70%);
  animation: atmoDrift1 22s ease-in-out infinite alternate;
}
.atmo-blob--2 {
  width: 760px; height: 760px;
  right: -15%; top: 35%;
  background: radial-gradient(circle, rgba(230, 220, 200, 0.28) 0%, transparent 70%);
  animation: atmoDrift2 28s ease-in-out infinite alternate;
}
.atmo-blob--3 {
  width: 560px; height: 560px;
  left: 15%; bottom: -10%;
  background: radial-gradient(circle, rgba(180, 100, 50, 0.35) 0%, transparent 70%);
  animation: atmoDrift3 26s ease-in-out infinite alternate;
}
@keyframes atmoDrift1 { to { transform: translate(8%, 10%) scale(1.15); } }
@keyframes atmoDrift2 { to { transform: translate(-10%, -6%) scale(0.9); } }
@keyframes atmoDrift3 { to { transform: translate(6%, -8%) scale(1.1); } }

.atmo-ember {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  background: radial-gradient(circle, rgba(230, 181, 106, 0.55) 0%, transparent 75%);
  animation: atmoPulse 4.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.atmo-ember--1 { width: 220px; height: 220px; left: 60%; top: 20%; animation-delay: 0s; }
.atmo-ember--2 { width: 160px; height: 160px; left: 20%; top: 65%; animation-delay: 2.2s; }
@keyframes atmoPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.25); }
}

.atmo-mark {
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  color: rgba(245, 245, 247, 0.035);
  animation: atmoMarkDrift 40s ease-in-out infinite alternate;
}
@keyframes atmoMarkDrift {
  to { transform: translate(-46%, -54%) rotate(4deg) scale(1.06); }
}

/* Progressive Enhancement: In Browsern mit Scroll-Driven-Animations-Support
   koppeln sich Position/Deckkraft zusätzlich an den Scrollfortschritt der Seite,
   statt nur endlos zu loopen. */
@supports (animation-timeline: scroll()) {
  .atmo-blob--1 {
    animation: atmoScroll1 1s linear;
    animation-timeline: scroll(root);
    animation-range: 0% 100%;
  }
  .atmo-blob--2 {
    animation: atmoScroll2 1s linear;
    animation-timeline: scroll(root);
    animation-range: 0% 100%;
  }
  .atmo-blob--3 {
    animation: atmoScroll3 1s linear;
    animation-timeline: scroll(root);
    animation-range: 0% 100%;
  }
  .atmo-ember--1, .atmo-ember--2 {
    animation: atmoPulse 4.5s ease-in-out infinite, atmoEmberScroll 1s linear;
    animation-timeline: auto, scroll(root);
    animation-range: auto, 0% 100%;
  }
  .atmo-mark {
    animation: atmoMarkScroll 1s linear;
    animation-timeline: scroll(root);
    animation-range: 0% 100%;
  }
}
@keyframes atmoScroll1 {
  0% { transform: translate(0%, 0%) scale(1); opacity: 0.55; }
  35% { transform: translate(25%, 55%) scale(1.3); opacity: 0.7; }
  70% { transform: translate(-5%, 110%) scale(0.9); opacity: 0.4; }
  100% { transform: translate(15%, 170%) scale(1.2); opacity: 0.6; }
}
@keyframes atmoScroll2 {
  0% { transform: translate(0%, 0%) scale(1); opacity: 0.35; }
  40% { transform: translate(-20%, 70%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-35%, 150%) scale(1.15); opacity: 0.3; }
}
@keyframes atmoScroll3 {
  0% { transform: translate(0%, 0%) scale(1); opacity: 0.4; }
  50% { transform: translate(18%, -40%) scale(1.2); opacity: 0.6; }
  100% { transform: translate(-10%, -90%) scale(0.85); opacity: 0.35; }
}
@keyframes atmoEmberScroll {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-8%, 60%); }
  100% { transform: translate(10%, 130%); }
}
@keyframes atmoMarkScroll {
  0% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 0.035; }
  50% { transform: translate(-48%, 10%) rotate(3deg) scale(1.15); opacity: 0.05; }
  100% { transform: translate(-52%, 70%) rotate(-4deg) scale(0.95); opacity: 0.03; }
}

/* ==================== Nav ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04), 0 12px 30px rgba(0,0,0,0.25);
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-right: auto;
}
.brand-mark { color: var(--accent); display: flex; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand-mark.small { color: var(--accent); }
.brand:hover .brand-mark { transform: rotate(-12deg) translateY(-2px); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: rgba(245, 245, 247, 0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--accent-bright); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 80px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1a1410 0%, var(--bg) 55%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(205, 154, 77, 0.25) 0%, rgba(205, 154, 77, 0) 60%);
  filter: blur(40px);
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  0% { transform: translateX(-52%) translateY(0) scale(1); }
  100% { transform: translateX(-48%) translateY(20px) scale(1.06); }
}

.hero-row {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.hero-inner { text-align: left; max-width: 580px; flex: 1 1 480px; }

.hero-pack {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 0 8px;
}
.hero-pack svg { width: 100%; height: 100%; overflow: visible; display: block; position: relative; z-index: 1; }

/* Rauch-Wisps: dezenter Aufstieg über der Pin-Spitze, startet nachdem sich die Packung geöffnet hat */
.smoke-wisp {
  position: absolute;
  left: 50%; top: 18%;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 245, 247, 0.22), transparent 70%);
  filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  animation: smokeRise 5s ease-in infinite;
}
.smoke-wisp:nth-child(1) { animation-delay: 1.3s; }
.smoke-wisp:nth-child(2) { width: 15px; height: 15px; margin-left: -7px; animation-delay: 2.6s; }
.smoke-wisp:nth-child(3) { width: 12px; height: 12px; margin-left: -6px; animation-delay: 3.8s; }
@keyframes smokeRise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 0.6; }
  100% { transform: translate(8px, -60px) scale(1.7); opacity: 0; }
}
.hero-pack .pack-lid {
  transform: translateY(0);
  opacity: 1;
}
.hero-pack .pack-pin {
  transform: translateY(46px) scale(0.35);
  opacity: 0;
  transform-origin: 60px 65px;
}
.hero-pack.play .pack-lid {
  animation: packLidOpen 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}
.hero-pack.play .pack-pin {
  animation: packPinPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}
@keyframes packLidOpen {
  to { transform: translateY(-22px); opacity: 0; }
}
@keyframes packPinPop {
  0% { transform: translateY(46px) scale(0.35); opacity: 0; }
  65% { transform: translateY(-5px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.hero h1 {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9cd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; justify-content: flex-start; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 100px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 30px rgba(205, 154, 77, 0.25);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(205, 154, 77, 0.35); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-primary.large { font-size: 18px; padding: 18px 38px; }
.btn-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.btn-link:hover { border-color: var(--text); }

/* ---------- Hero phone mockup ---------- */
.hero-visual { position: relative; z-index: 2; flex: 0 0 auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.phone {
  width: 260px;
  height: 520px;
  background: linear-gradient(160deg, #2a2a2e, #0d0d0f);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 60px rgba(205, 154, 77, 0.12);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0d0d0f;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #0b0b0d;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}
.mini-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(205, 154, 77, 0.12), transparent 40%),
    linear-gradient(160deg, #1c1c1f, #0b0b0d 70%);
}
.mini-map::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.mini-pin {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 3px rgba(205, 154, 77, 0.2);
}
.mini-pin.p1 { top: 30%; left: 25%; }
.mini-pin.p2 { top: 45%; left: 68%; }
.mini-pin.p3 { top: 62%; left: 38%; }
.mini-pin.p4 { top: 22%; left: 55%; }
.mini-pin.active { width: 14px; height: 14px; background: var(--accent-bright); box-shadow: 0 0 0 6px rgba(230, 181, 106, 0.25); }
.mini-you {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  background: #4da3ff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.25);
}
.mini-card {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); flex-shrink: 0; }
.mini-card strong { display: block; font-size: 12.5px; color: var(--text); }
.mini-card span { font-size: 11px; color: var(--muted); }

/* ==================== Stats ==================== */
.stats { background: var(--bg-veil); padding: 60px 24px 120px; }
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  transition: border-color 0.3s, transform 0.3s;
}
.stat:hover { border-color: rgba(230, 181, 106, 0.3); transform: translateY(-2px); }
.stat-num {
  display: block;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; display: block; }

/* ==================== Section head shared ==================== */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-sub { font-size: 17px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

/* ==================== Finder / Map section ==================== */
.finder { background: var(--bg-veil); padding: 100px 24px; }
.finder .eyebrow { text-align: center; }

.finder-controls {
  max-width: 720px;
  margin: 0 auto 20px;
  display: flex;
  gap: 12px;
}
.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 18px;
  color: var(--muted);
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  width: 100%;
}
.search-box input::placeholder { color: var(--muted); }

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.search-results.open { display: block; }
.search-result-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(205, 154, 77, 0.1); }
.search-result-empty { padding: 14px 16px; font-size: 13.5px; color: var(--muted); }

.btn-near {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 100px;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.btn-near:hover { border-color: var(--accent); }
.btn-near.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-near.loading { opacity: 0.6; pointer-events: none; }

.chip-row {
  max-width: 720px;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.finder-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  height: 640px;
}

.sheet { display: contents; }
.sheet-handle { display: none; }

.location-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}
.location-list::-webkit-scrollbar { width: 6px; }
.location-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.list-hint {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 4px 4px;
}

.location-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.location-card:hover { background: var(--surface-2); transform: translateX(2px); }
.location-card.active { border-color: var(--accent); background: rgba(205, 154, 77, 0.08); }
.loc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.loc-card-top strong { font-size: 15px; color: var(--text); }
.badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent-bright);
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}
.badge-verified { background: #6fcf97; }
.badge-community { background: #4da3ff; color: #fff; }
.badge-group { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.loc-meta { font-size: 13px; color: var(--muted); }
.loc-distance { font-size: 12.5px; color: var(--accent-bright); font-weight: 600; }

.empty-state {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 40px 20px;
}

.map-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
#map { width: 100%; height: 100%; background: #0b0b0d; }

.pin {
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 3px rgba(205, 154, 77, 0.25), 0 2px 6px rgba(0,0,0,0.4);
  transition: background 0.2s;
  animation: pinPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pin-community { background: #4da3ff; box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.3), 0 2px 6px rgba(0,0,0,0.4); }
.you-pin {
  width: 14px; height: 14px;
  background: #4da3ff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.25);
  animation: markerPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pinPop {
  0% { transform: rotate(-45deg) scale(0); }
  70% { transform: rotate(-45deg) scale(1.15); }
  100% { transform: rotate(-45deg) scale(1); }
}
@keyframes markerPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cluster-pin {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  font-weight: 700;
  font-family: var(--font);
  font-size: 12px;
  border: 3px solid rgba(0,0,0,0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  animation: markerPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cluster-small { background: var(--accent); }
.cluster-medium { background: var(--accent-bright); font-size: 12.5px; }
.cluster-large { background: #f2c98a; font-size: 13px; }

.map-popup { display: flex; flex-direction: column; gap: 3px; font-family: var(--font); min-width: 160px; }
.map-popup strong { font-size: 13.5px; color: var(--text-dark); }
.map-popup span { font-size: 12px; color: var(--muted-dark); }
.popup-route {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #a8763a;
}
.popup-route:hover { text-decoration: underline; }

/* ---------- Pin-Drop-Modus ---------- */
.pin-drop-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  z-index: 55;
  pointer-events: none;
}
.pin-drop-crosshair::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 4px rgba(169, 124, 56, 0.3), 0 2px 8px rgba(0,0,0,0.5);
}
.pin-drop-bar {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 55;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pin-drop-bar span { font-size: 13px; color: var(--muted); }
.pin-drop-bar .btn-primary { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.pin-drop-bar[hidden] { display: none; }

.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-container { font-family: var(--font); }

/* ==================== Features ==================== */
.features { background: var(--surface-section-veil); color: var(--text); padding: 110px 24px; }

.bento-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}
.bento-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(230, 181, 106, 0.16), transparent 70%);
  pointer-events: none;
}
.bento-tile:hover { transform: translateY(-4px); border-color: rgba(230, 181, 106, 0.35); }
.bento-tile:hover::before { opacity: 1; }

.bento-tile--large {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 0;
}
.bento-tile-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(230, 181, 106, 0.14), transparent 45%),
    linear-gradient(160deg, #1c1c1f, var(--surface) 70%);
}
.bento-tile-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bento-map-grid { position: absolute; inset: 0; }
.bento-map-pin {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 4px rgba(205, 154, 77, 0.2);
}
.bento-map-pin.p1 { top: 28%; left: 22%; }
.bento-map-pin.p2 { top: 48%; left: 62%; background: var(--accent-bright); width: 13px; height: 13px; box-shadow: 0 0 0 6px rgba(230, 181, 106, 0.25); }
.bento-map-pin.p3 { top: 68%; left: 35%; }
.bento-tile-content {
  position: relative;
  z-index: 1;
  padding: 28px 26px;
  background: linear-gradient(0deg, var(--surface) 30%, transparent 100%);
}
.bento-tile-content h3 { color: var(--text); }
.bento-tile-content p { color: var(--muted); }

.bento-tile--gradient {
  background: linear-gradient(155deg, #2a1f10, var(--surface) 75%);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(160deg, #f0dcb8, #e6b56a);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-accent);
  margin-bottom: 20px;
}
.feature-icon--light { background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)); color: var(--accent-bright); }
.bento-tile h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.bento-tile p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ==================== Steps (Rail) ==================== */
.steps { background: var(--bg-veil); padding: 110px 24px; }

.rail {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  position: relative;
}
.rail-line {
  position: absolute;
  top: 15px;
  left: calc(16.5% + 4px);
  right: calc(16.5% + 4px);
  height: 1px;
  background: var(--border);
}
.rail-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 1.2s var(--ease);
}
.rail.in-view .rail-line-fill { width: 100%; }
.rail-step { flex: 1; text-align: left; position: relative; z-index: 1; }
.rail-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.rail-step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.rail-step p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ==================== FAQ ==================== */
.faq { background: var(--surface-section-veil); color: var(--text); padding: 110px 24px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ==================== CTA ==================== */
.cta {
  position: relative;
  background: var(--bg-veil);
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(205, 154, 77, 0.2), transparent 65%);
  filter: blur(30px);
}
.cta h2 {
  position: relative;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  margin-bottom: 36px;
  color: var(--text);
}
.cta .btn-primary { position: relative; }

/* ==================== Footer ==================== */
.footer { background: var(--bg-veil); border-top: 1px solid var(--border); padding: 48px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text); margin-bottom: 20px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; }
.footer-links a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 12.5px; color: var(--muted-dark); max-width: 480px; margin: 0 auto 16px; line-height: 1.5; }
.footer-copy { font-size: 12.5px; color: var(--muted-dark); }

/* ==================== Rechtliche Seiten (Impressum/Datenschutz) ==================== */
.legal {
  background: var(--bg-alt);
  color: var(--text-dark);
  padding: 160px 24px 100px;
  min-height: 100vh;
}
.legal-inner { max-width: 720px; margin: 0 auto; }
.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.legal-updated { font-size: 13px; color: var(--muted-dark); margin-bottom: 40px; }
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 12px;
}
.legal h3 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--text-dark); margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.legal a { color: var(--accent); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal-back { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--muted-dark); }
.legal-back:hover { color: var(--text-dark); }
.legal-placeholder-notice {
  background: #fff3d6;
  border: 1px solid #e8c874;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b5518;
  margin-bottom: 40px;
}
.legal-placeholder-notice strong { display: block; margin-bottom: 4px; }
.legal [data-placeholder] { background: #fff3d6; padding: 1px 5px; border-radius: 4px; color: #6b5518; font-weight: 600; }

/* ==================== Cookie-/Datenschutz-Hinweis ==================== */
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  z-index: 90;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.consent-banner p { flex: 1 1 320px; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.consent-banner a { color: var(--accent-bright); }
.consent-banner .btn-primary { padding: 10px 22px; font-size: 14px; white-space: nowrap; }
.consent-banner[hidden] { display: none; }

/* ==================== FAB "+" (Standort hinzufügen) ==================== */
.fab-add {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font);
  font-size: 30px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, bottom 0.2s;
}
.fab-add.visible { opacity: 1; pointer-events: auto; transform: scale(1); animation: fabEmber 2.8s ease-in-out infinite; }
.fab-add:hover { background: var(--accent-bright); transform: scale(1) translateY(-2px); animation-play-state: paused; }
.fab-add:active { transform: scale(0.94); }
@keyframes fabEmber {
  0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 0 0 rgba(205, 154, 77, 0.35); }
  50% { box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 22px 5px rgba(205, 154, 77, 0.5); }
}
.fab-add[hidden] { display: none; }

/* ==================== Add-Location-Modal ==================== */
.add-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 7, 4, 0.65);
  backdrop-filter: blur(4px);
  z-index: 70;
  animation: modalBackdropIn 0.25s ease both;
}
.add-modal-panel {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  z-index: 71;
  animation: modalPanelIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPanelIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.92) translateY(10px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) translateY(0); }
}
.add-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  width: 32px; height: 32px;
}
.add-modal-close:hover { color: var(--text); }

.add-step h3 {
  font-size: 20px;
  margin-bottom: 18px;
  padding-right: 24px;
}
.add-step { display: flex; flex-direction: column; gap: 12px; }
.add-step[hidden] { display: none; }
.add-step p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.add-position-readout { font-size: 13px; color: var(--accent-bright); }
#changePositionLink { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); align-self: flex-start; }
#changePositionLink:hover { color: var(--text); }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.form-field input[type="text"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
}
.form-field input[type="text"]:focus { outline: none; border-color: var(--accent); }

.form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.form-toggle input { width: 20px; height: 20px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.add-error { color: #e07a5f; font-size: 13.5px; }

.osm-link { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent-bright); }
.osm-link:hover { text-decoration: underline; }
.osm-link-hint { font-size: 12px; color: var(--muted); margin-top: -6px; }

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav.menu-open .nav-links a { padding: 10px 0; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px; }

  .hero-row { flex-direction: column; text-align: left; }
  .hero-visual { margin-top: 24px; }

  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bento-tile--large { grid-column: auto; grid-row: auto; }

  .rail { flex-direction: column; gap: 32px; }
  .rail-line { display: none; }

  /* Touch-Targets ≥44px */
  .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-near { min-height: 44px; }

  /* Karten-zentriertes Layout mit ausziehbarem Bottom-Sheet statt gestapelter Liste */
  .finder-layout { grid-template-columns: 1fr; height: auto; position: relative; }
  .map-wrap { height: calc(100dvh - 64px); order: 1; }

  .sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 88px;
    max-height: 85vh;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
    z-index: 50;
    transition: height 0.3s var(--ease);
  }
  .sheet-handle {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: var(--border);
    margin: 10px auto;
    touch-action: none;
  }
  .location-list { flex: 1; min-height: 0; padding: 0 16px 16px; }

  .fab-add { bottom: calc(88px + 16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 140px 20px 60px; }
  .phone { width: 220px; height: 440px; }
  .finder-controls { flex-direction: column; }
  .soft-break { display: none; }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-glow { animation: none; }
}
