/* ═══════════════════════════════════════════
   BoulderHub – Main Stylesheet
   Brand: Deep Teal #1e3d4a / #4c6d7a
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-900: #0d2530;
  --brand-800: #1e3d4a;
  --brand-700: #2d5a6b;
  --brand-600: #3d7080;
  --brand-500: #4c6d7a;  /* primary */
  --brand-400: #6a8f9e;
  --brand-300: #8fb0bc;
  --brand-200: #c4d8df;
  --brand-100: #e6f0f3;
  --brand-50:  #f2f8fa;

  --petrol:    #4c6d7a;
  --petrol-dark: #3a5562;
  --petrol-light: #5d8190;
  --orange:    #f59432;
  --orange-dark: #d4791c;
  --brown:     #7c3000;
  --accent:    #4c6d7a;
  --accent-light: #e6f0f3;
  --dark:      #0d1b22;
  --text:      #1a2e35;
  --text-muted:#4a6572;
  --text-light:#7a9aaa;
  --bg:        #ffffff;
  --bg-soft:   #f5f8fa;
  --bg-alt:    #edf2f5;
  --white:     #ffffff;
  --border:    #dde8ed;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  /* Karten-Panel: zwischen --shadow-sm und --shadow, weniger Spread als --shadow-lg (kein Viewport-Overflow) */
  --shadow-map: 0 3px 14px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow:    0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.08);
  --shadow-xl: 0 40px 100px rgba(0,0,0,.18);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  /* Feste Nav: Zielanker nicht unter der Bar */
  --scroll-margin-nav: 73px;
}

html { scroll-behavior: smooth; }

#features,
#app,
#gyms,
#download {
  scroll-margin-top: var(--scroll-margin-nav);
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ── Typography ── */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
p  { color: var(--text-muted); line-height: 1.7; }

.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, #ffb347 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { font-size: 1.1rem; }
.section-header--light h2, .section-header--light p { color: white; }
.section-header--light p { opacity: 0.75; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,148,50,0.12);
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(245,148,50,0.25);
}
.section-tag--light { background: rgba(255,255,255,0.15); color: white; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn--primary {
  background: var(--petrol);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 8px rgba(0,95,115,0.25);
}
.btn--primary:hover {
  background: var(--petrol-light);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 4px 16px rgba(0,95,115,0.35);
}
.btn--outline {
  border: 2px solid var(--petrol);
  color: var(--petrol);
  background: transparent;
}
.btn--outline:hover {
  background: var(--petrol);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 10px; }

/* ── Store Buttons ── */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: var(--petrol);
  color: #ffffff;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 8px rgba(0,95,115,0.25);
  text-align: left;
}
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.store-btn small { font-size: 0.7rem; opacity: 0.75; font-weight: 400; color: rgba(255,255,255,0.85); }
.store-btn strong { font-size: 1rem; font-weight: 700; color: #ffffff; }
.store-btn:hover {
  background: var(--petrol-light);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 20px rgba(0,95,115,0.4);
}
.store-btn--dark { background: var(--petrol-dark); }
.store-btn--dark:hover { background: var(--petrol); }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
}
.header.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
/* Unterseiten sollen ohne JS-Flash direkt wie "scrolled" aussehen */
.subpage .header {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  transition: var(--transition);
}
.header.scrolled .nav__logo { color: var(--text); }
.subpage .nav__logo { color: var(--text); }
.nav__links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.header.scrolled .nav__links a { color: var(--text-muted); }
.subpage .nav__links a { color: var(--text-muted); }
.nav__links a:hover { background: rgba(255,255,255,0.12); color: white; }
.header.scrolled .nav__links a:hover { background: var(--bg-alt); color: var(--text); }
.subpage .nav__links a:hover { background: var(--bg-alt); color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }
.header.scrolled .hamburger span { background: var(--text); }
.subpage .hamburger span { background: var(--text); }

/* Index & andere: echtes Marken-SVG im Header (ohne PNG-Kachel) */
.nav__logo-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: var(--transition);
}
/* Auf dunklem Hero: invertiert, hell wie der Schriftzug */
.header:not(.scrolled) .nav__logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.header.scrolled .nav__logo-img {
  filter: none;
  opacity: 1;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.subpage .nav__logo-img {
  filter: none;
  opacity: 1;
}
/* Verhindert Initial-Flash auf Unterseiten vor/bei JS-Class-Set */
.subpage .header:not(.scrolled) .nav__logo-img {
  filter: none;
  opacity: 1;
}
.subpage .header,
.subpage .nav__logo,
.subpage .nav__links a,
.subpage .hamburger span,
.subpage .nav__logo-img {
  transition: none;
}
.footer .nav__logo-img {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
}

/* ── Logo mark ── */
.logo-mark {
  width: 34px; height: 34px;
  background: url('Logo_BHUB.png') no-repeat center / contain;
  flex-shrink: 0;
}
.logo-mark--lg { width: 64px; height: 64px; }
.logo-mark--sm { width: 26px; height: 26px; }
.nav__logo .logo-mark {
  background-color: rgba(255,255,255,0.9);
  border-radius: 8px;
  background-size: 75%;
  transition: var(--transition);
}
.header.scrolled .nav__logo .logo-mark {
  background-color: transparent;
  background-size: contain;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 40%, #2d5a6b 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.hero__orb--1 { width: 600px; height: 600px; background: #7cb8cc; top: -100px; right: -100px; }
.hero__orb--2 { width: 400px; height: 400px; background: #4c6d7a; bottom: -50px; left: 10%; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}
.hero__text { flex: 1; max-width: 520px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero__headline { color: white; margin-bottom: 24px; }
.hero__sub { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.stars { display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }

/* ── Hero Phones ── */
.hero__phones {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 550px;
}

/* ── Phone Component ── */
.phone {
  width: 230px;
  background: #12232a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  flex-shrink: 0;
}
.phone__notch {
  width: 100px; height: 28px;
  background: #0a1a21;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}
.phone__screen {
  background: #ffffff;
  border-radius: 30px;
  overflow: hidden;
  height: 460px;
}
.phone__screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.phone__screen:has(.phone__screenshot) {
  height: auto;
  aspect-ratio: 591 / 1280;
  background: #000;
}
.phone--front {
  position: relative;
  z-index: 2;
  transform: rotate(-2deg);
}
.phone--back {
  position: absolute;
  right: -20px;
  top: 40px;
  z-index: 1;
  transform: rotate(6deg);
  opacity: 0.85;
}
.phone__bottom-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 16px 4px;
  border-top: 1px solid #f0f4f6;
  background: white;
}
.phone--showcase {
  width: 220px;
  transform: none;
  position: static;
}
.phone--download {
  width: 240px;
  transform: rotate(-3deg);
}
.tab-icon { padding: 6px; color: #b0c4cc; cursor: pointer; transition: var(--transition); border-radius: 8px; }
.tab-icon--active { color: var(--brand-500); }
.tab-icon:hover { background: var(--bg-alt); }

/* ── App Screens ── */
.app-screen { display: flex; flex-direction: column; height: 100%; background: #f5f8fa; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: white;
  border-bottom: 1px solid #eef2f4;
  flex-shrink: 0;
}
.app-topbar--dark { background: var(--brand-800); border-color: var(--brand-700); }
.app-topbar--dark .app-title { color: white; }
.app-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.app-logo-text { font-size: 0.9rem; font-weight: 900; color: var(--brand-700); letter-spacing: -0.02em; }
.app-icons { display: flex; gap: 6px; }
.app-icon-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-300); }
.map-badge { background: #dcfce7; color: #15803d; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 100px; }

/* Feed Screen */
.app-screen--feed { background: #f5f8fa; }
.feed-card {
  margin: 10px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.feed-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px;
}
.feed-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.feed-card__header strong { font-size: 0.72rem; display: block; color: var(--text); }
.feed-card__header small { font-size: 0.62rem; color: var(--text-light); }
.feed-card__img { height: 100px; background: linear-gradient(135deg, #1a2e35, #2d5a6b); position: relative; overflow: hidden; }
.boulder-wall { position: absolute; inset: 0; }
.hold {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hold--red { background: #ef4444; }
.hold--blue { background: #3b82f6; }
.hold--yellow { background: #f59e0b; }
.hold--green { background: #22c55e; }
.hold--purple { background: #a855f7; }
.feed-card__actions { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; }
.difficulty-badge {
  background: rgba(245,148,50,0.12);
  color: var(--orange-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(245,148,50,0.25);
}
.feed-stars { font-size: 0.6rem; }
.feed-card__caption { padding: 0 10px 8px; font-size: 0.65rem; color: var(--text-muted); }
.feed-card--sm { padding: 6px 10px; }

/* Leaderboard Screen */
.app-screen--leaderboard { background: #f5f8fa; }
.leaderboard-list { padding: 8px; flex: 1; overflow: hidden; }
.lb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 4px;
  background: white;
  transition: var(--transition);
}
.lb-item--gold { background: #fffbeb; border: 1px solid #fde68a; }
.lb-item--silver { background: #f8fafc; border: 1px solid #e2e8f0; }
.lb-item--bronze { background: #fff7ed; border: 1px solid #fed7aa; }
.lb-item--you { background: var(--brand-50); border: 1px solid var(--brand-200); }
.lb-rank { font-size: 0.75rem; width: 22px; text-align: center; flex-shrink: 0; }
.lb-avatar { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.lb-info { flex: 1; min-width: 0; }
.lb-info strong { display: block; font-size: 0.7rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-info small { font-size: 0.6rem; color: var(--text-light); }

/* Map Screen */
.app-screen--map { background: #edf5f8; }
.gym-map { flex: 1; position: relative; padding: 8px; }
.gym-section {
  position: absolute;
  border: 1.5px dashed var(--brand-300);
  border-radius: 8px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gym-section span { font-size: 0.55rem; font-weight: 600; color: var(--brand-600); }
.gym-holds { display: flex; gap: 3px; flex-wrap: wrap; }
.gym-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Profile Screen */
.app-screen--profile { background: white; }
.profile-header { text-align: center; padding: 16px 10px 10px; }
.profile-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-400));
  margin: 0 auto 8px;
}
.profile-name { font-size: 0.85rem; font-weight: 800; color: var(--text); }
.profile-since { font-size: 0.62rem; color: var(--text-light); margin-top: 2px; }
.profile-stats {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 8px 0;
}
.profile-stat { flex: 1; text-align: center; padding: 8px 4px; }
.profile-stat strong { display: block; font-size: 0.85rem; color: var(--text); }
.profile-stat small { font-size: 0.58rem; color: var(--text-light); }
.profile-stat + .profile-stat { border-left: 1px solid var(--border); }
.profile-history { padding: 6px 10px; }
.history-label { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.history-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f4f6; }
.history-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.history-info { flex: 1; min-width: 0; }
.history-info strong { font-size: 0.68rem; color: var(--text); display: block; }
.history-info small { font-size: 0.58rem; color: var(--text-light); }
.history-date { font-size: 0.6rem; color: var(--text-light); white-space: nowrap; }

/* ── Hallen Screen (gym list) ── */
.app-screen--hallen { background: #f2f4f6; }
.hallen-search {
  display: flex; align-items: center; gap: 7px;
  background: #ececec; border-radius: 10px;
  padding: 7px 10px; margin: 8px 10px;
  color: #9aacb4; font-size: 0.65rem;
}
.hallen-section-title {
  font-size: 0.72rem; font-weight: 800; color: var(--text);
  padding: 8px 10px 4px; letter-spacing: -0.01em;
}
.hallen-favorites { display: flex; gap: 8px; padding: 0 10px 8px; overflow: hidden; }
.fav-card {
  flex-shrink: 0; width: 110px; height: 68px; border-radius: 10px;
  position: relative; overflow: hidden;
}
.fav-card__bg { position: absolute; inset: 0; }
.fav-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}
.fav-card__text { position: absolute; bottom: 6px; left: 7px; right: 7px; }
.fav-card__name { font-size: 0.62rem; font-weight: 800; color: white; line-height: 1.2; }
.fav-card__addr { font-size: 0.52rem; color: rgba(255,255,255,0.75); }
.fav-card__status { font-size: 0.5rem; color: #f59432; margin-top: 1px; }
.hallen-list { display: flex; flex-direction: column; padding: 0 10px; gap: 6px; }
.hl-item {
  display: flex; align-items: center; gap: 8px;
  background: white; border-radius: 10px; padding: 8px 10px;
}
.hl-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hl-info { flex: 1; min-width: 0; }
.hl-info strong { display: block; font-size: 0.65rem; font-weight: 700; color: var(--text); }
.hl-info small { font-size: 0.55rem; color: var(--text-light); display: block; }
.hl-status { font-size: 0.52rem; color: #f59432; font-weight: 600; margin-top: 1px; display: block; }
.hl-chevron { color: #f59432; flex-shrink: 0; }

/* ── Boulder Detail Screen ── */
.app-screen--detail { background: #f2f4f6; overflow: hidden; }
.detail-nav {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; background: #f2f4f6;
  font-size: 0.6rem; color: var(--text-muted); flex-shrink: 0;
}
.detail-nav-back { display: flex; align-items: center; gap: 3px; color: var(--text); font-weight: 600; font-size: 0.62rem; }
.detail-nav-title { margin-left: auto; font-size: 0.6rem; font-weight: 700; color: var(--text); }
.detail-wall {
  height: 110px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3d2a1a, #6b4a2a, #4a3520);
  flex-shrink: 0;
}
.detail-wall-holds { position: absolute; inset: 0; }
.detail-pin {
  position: absolute; top: 50%; left: 42%; transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  background: #f59432; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.detail-body { padding: 8px 10px; flex: 1; overflow: hidden; }
.detail-link {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.6rem; color: #f59432; font-weight: 600; margin-bottom: 8px;
}
.detail-section { margin-bottom: 10px; }
.detail-label { font-size: 0.68rem; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.detail-stars { display: flex; gap: 3px; font-size: 0.75rem; }
.detail-btns { display: flex; gap: 6px; }
.detail-btn {
  flex: 1; padding: 7px 0; border-radius: 8px;
  font-size: 0.65rem; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.detail-btn--top { background: #4c6d7a; color: white; }
.detail-btn--flash { background: #f59432; color: white; }
.detail-diff-row { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.detail-diff-label { font-size: 0.68rem; font-weight: 800; color: var(--text); }
.detail-diff-grade { font-size: 0.68rem; font-weight: 800; color: #f59432; }
.detail-chips { display: flex; gap: 5px; overflow: hidden; }
.diff-chip {
  min-width: 26px; height: 26px; border-radius: 50%;
  background: #e2e8ec; display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.diff-chip--active { background: var(--petrol); color: white; }

/* Splash Screen */
.app-screen--splash {
  background: linear-gradient(160deg, var(--brand-900), var(--brand-700));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
}
.splash-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.splash-name { color: white; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; }
.splash-tagline { color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; }

/* ── Scroll indicator ── */
.hero__scroll { display: flex; justify-content: center; padding-bottom: 32px; position: relative; z-index: 1; }
.scroll-indicator {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-indicator span {
  display: block;
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scroll-bounce 2s ease infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 0.2; }
}

/* ══════════════════════════════════
   STATS
══════════════════════════════════ */
.stats {
  background: var(--brand-800);
  padding: 40px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--brand-800);
  text-align: center;
  padding: 32px 20px;
}
.stat__number { font-size: 1.9rem; font-weight: 900; color: white; letter-spacing: -0.03em; margin-bottom: 4px; }
.stat__label { font-size: 0.82rem; color: rgba(255,255,255,0.55); font-weight: 500; }

@media (max-width: 1200px) {
  .stats .stats__grid {
    max-width: 95%;
  }
}

/* ══════════════════════════════════
   FEATURES
══════════════════════════════════ */
.features { background: var(--bg-soft); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  grid-template-rows: auto auto;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.feature-card--large {
  grid-column: span 1;
  background: linear-gradient(135deg, #f0f8fa, white);
}
.feature-card--accent {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  border-color: transparent;
}
.feature-card--accent h3, .feature-card--accent p { color: white; }
.feature-card--accent p { opacity: 0.8; }
.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; }
.feature-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.feature-card__tags span {
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ══════════════════════════════════
   SHOWCASE (App Details)
══════════════════════════════════ */
.showcase {
  background: var(--brand-900);
  position: relative;
  overflow: hidden;
}
.showcase__bg { position: absolute; inset: 0; pointer-events: none; }
.showcase__orb {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(76,109,122,0.3), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.showcase .section-header h2 { color: white; }
.showcase__items { display: flex; flex-direction: column; gap: 100px; position: relative; z-index: 1; }
.showcase__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase__item--reverse { direction: rtl; }
.showcase__item--reverse > * { direction: ltr; }
.showcase__phone-wrap {
  display: flex;
  justify-content: center;
}
.showcase__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.showcase__text h3 { color: white; font-size: 1.7rem; margin-bottom: 16px; }
.showcase__text p { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 24px; }
.showcase__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showcase__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
}
.showcase__list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  flex-shrink: 0;
}

/* ══════════════════════════════════
   GYM MAP SECTION
══════════════════════════════════ */
.gym-map-section {
  background: var(--bg-soft);
  padding: 100px 0;
}
.gym-map-section .section-header { text-align: center; }

/* Side-by-side layout */
.map-and-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 24px;
  align-items: stretch;
  min-width: 0;
}
.map-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-map);
  border: 1px solid var(--border);
  height: 560px;
  position: relative;
  min-width: 0;
  /* Leaflet nutzt hohe z-index-Werte; Kontext begrenzen, damit die Karte nicht über den fixierten Header (z-index: 100) liegt */
  z-index: 0;
  isolation: isolate;
}
#partner-map {
  width: 100%;
  height: 100%;
}
.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.map-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--petrol);
  flex-shrink: 0;
}
.gym-cards-scroll {
  position: relative;
  height: 560px;
  min-width: 0;
}
.gym-cards-scroll .gym-cards {
  height: 100%;
  min-width: 0;
}
.gym-cards {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-200) transparent;
}
.gym-cards-scroll__fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 32px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.gym-cards-scroll__fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-soft), transparent);
}
.gym-cards-scroll__fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-soft), transparent);
}
.gym-cards-scroll__fade.is-visible {
  opacity: 1;
}
.gym-cards::-webkit-scrollbar { width: 4px; }
.gym-cards::-webkit-scrollbar-track { background: transparent; }
.gym-cards::-webkit-scrollbar-thumb { background: var(--brand-200); border-radius: 4px; }
.gym-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.gym-card:hover { box-shadow: var(--shadow); border-color: var(--border); background: #fafcfd; }
.gym-card.active { border-color: var(--petrol); background: rgba(76,109,122,0.04); box-shadow: var(--shadow); }
.gym-card__icon {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.gym-card__logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--bg);
}
.gym-card__initials {
  position: relative;
  z-index: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  background: linear-gradient(135deg, #3a5562, #4c6d7a);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gym-card__icon svg { width: 20px; height: 20px; color: var(--petrol); }
.gym-card__info { flex: 1; min-width: 0; }
.gym-card__info h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gym-card__city {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gym-card__chevron {
  color: var(--orange);
  flex-shrink: 0;
  opacity: 0.8;
}
/* ══════════════════════════════════
   INSTAGRAM
══════════════════════════════════ */
.instagram { background: var(--bg); }
.instagram__cta {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.instagram__cta h2 { margin-bottom: 0; }
.instagram__cta p { color: var(--text-muted); margin: 0; }
.instagram__cta .btn { margin-top: 8px; }

/* ══════════════════════════════════
   DOWNLOAD CTA
══════════════════════════════════ */
.download { background: var(--bg-soft); }
.download__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.download__text .section-tag { display: inline-flex; }
.download__text h2 { margin-bottom: 16px; }
.download__text p { margin-bottom: 32px; font-size: 1rem; }
.download__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.download__visual { display: flex; justify-content: center; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  background: var(--brand-900);
  color: rgba(255,255,255,0.7);
  padding-top: 72px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
}
.footer__brand .nav__logo { color: white; margin-bottom: 16px; }
.footer__brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,0.55); }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__social:hover { color: white; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: white; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: var(--transition); }
.footer__col a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer__bottom .container { display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ══════════════════════════════════
   ANIMATIONS (Scroll-in)
══════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .showcase__item { grid-template-columns: 1fr; gap: 40px; }
  .showcase__item--reverse { direction: ltr; }
  .showcase__phone-wrap { order: -1; }
  .showcase__item--reverse .showcase__phone-wrap { order: -1; }
  .download__inner { grid-template-columns: 1fr; gap: 48px; justify-items: center; text-align: center; }
  .download__btns { justify-content: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
  .map-and-list { grid-template-columns: minmax(0, 1fr); }
  .gym-cards-scroll { height: 400px; }
  .map-wrapper { height: 420px; }
}

@media (max-width: 768px) {
  .gym-map-section { overflow-x: clip; }
  .section { padding: 72px 0; }
  .hero__content { flex-direction: column; padding-top: 120px; text-align: center; }
  .hero__badge { margin: 0 auto 24px; }
  .hero__cta { justify-content: center; }
  .hero__rating { justify-content: center; }
  .hero__phones { min-height: 400px; }
  .phone--back { right: -10px; top: 30px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--brand-900);
    z-index: 99;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
  }
  .nav__links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
  }
  .nav__links.open a,
  .header.scrolled .nav__links.open a {
    font-size: 1.4rem;
    color: white;
  }

  .hamburger { display: flex; }
  .hero__phones { width: 100%; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
  .download__btns { flex-direction: column; }
  .footer__bottom .container { flex-direction: column; gap: 6px; text-align: center; }
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font) !important;
}
.leaflet-popup-content { margin: 14px 18px !important; }
.gym-popup h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.gym-popup p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.gym-popup .popup-badge {
  display: inline-block;
  margin-top: 6px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
