/* Brand tokens — match app/lib/theme.dart's RudelradarColors exactly. */
:root {
  --bg: #141613;
  --lime: #c8f542;
  --lime-hover: #daff6b;
  --text: #f2f4ee;
  --surface-raised: #1c221c;
  --surface-row: #232823;
  --avatar-neutral: #2a332a;
  --warning: #e8590c;
  --radius-card: 20px;
  --radius-button: 12px;
  --radius-pill: 99px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Archivo, sans-serif;
  background-image:
    repeating-radial-gradient(circle at 80% 15%, transparent 0 40px, rgba(200, 245, 66, 0.05) 40px 41px),
    repeating-radial-gradient(circle at 15% 85%, transparent 0 52px, rgba(255, 255, 255, 0.04) 52px 53px);
}

a {
  color: var(--lime);
  text-decoration: none;
}
a:hover {
  color: var(--lime-hover);
}

::placeholder {
  color: rgba(242, 244, 238, 0.35);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--lime);
  margin-bottom: 12px;
}

h1,
h2 {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  background: rgba(20, 22, 19, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 244, 238, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: var(--bg);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-size: 18px;
}

.brand-name span {
  color: var(--lime);
}

.nav-landing {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(242, 244, 238, 0.7);
}
.nav-landing span {
  cursor: pointer;
}
.nav-landing span:hover {
  color: var(--text);
}

.nav-app {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: rgba(242, 244, 238, 0.7);
}
.tab-pill.active {
  background: rgba(200, 245, 66, 0.12);
  color: var(--lime);
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  border: 1px solid rgba(242, 244, 238, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
}
.lang-toggle span {
  padding: 6px 10px;
  color: rgba(242, 244, 238, 0.7);
}
.lang-toggle span.active {
  background: var(--lime);
  color: var(--bg);
}

.btn-pill {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
}
.btn-pill:hover {
  background: var(--lime-hover);
}

/* ---------- Language / view visibility ---------- */

[data-de],
[data-en] {
  display: none;
}
[data-lang='de'] [data-de] {
  display: inline;
}
[data-lang='en'] [data-en] {
  display: inline;
}

[data-view='landing'] .app-only {
  display: none !important;
}
[data-view='app'] .landing-only {
  display: none !important;
}

[data-tab] {
  display: none;
}
[data-active-tab='karte'] [data-tab='karte'],
[data-active-tab='wettkampf'] [data-tab='wettkampf'],
[data-active-tab='rudel'] [data-tab='rudel'] {
  display: block;
}

/* ---------- Landing: hero ---------- */

.landing-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 72px 0 90px;
  flex-wrap: wrap;
}
.hero-copy {
  flex: 1;
  min-width: 420px;
}
.hero h1 {
  letter-spacing: -2.5px;
  font-size: 64px;
  line-height: 0.95;
  margin-bottom: 20px;
}
.hero h1 span.accent {
  color: var(--lime);
}
.hero p.lead {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(242, 244, 238, 0.7);
  max-width: 440px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-button);
  background: var(--surface-raised);
  border: 1px solid rgba(242, 244, 238, 0.12);
  cursor: pointer;
}
.store-btn:hover {
  border-color: rgba(200, 245, 66, 0.4);
}
.store-btn .store-name {
  font-size: 10px;
  color: rgba(242, 244, 238, 0.5);
}
.store-btn .store-soon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.5px;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.code-input {
  width: 170px;
  height: 46px;
  border-radius: var(--radius-button);
  background: var(--surface-raised);
  border: 1px solid rgba(242, 244, 238, 0.12);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 6px;
  text-align: center;
  outline: none;
  text-transform: uppercase;
}
.code-input.err {
  border-color: rgba(232, 89, 12, 0.6);
}
.code-open-btn {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: var(--radius-button);
  border: 1px solid rgba(242, 244, 238, 0.12);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--text);
}
.code-open-btn:hover {
  border-color: rgba(200, 245, 66, 0.4);
  color: var(--lime);
}
.code-hint {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(242, 244, 238, 0.5);
}
.code-hint .demo-link {
  color: var(--lime);
  cursor: pointer;
  font-weight: 600;
}
.code-err {
  margin-top: 12px;
  font-size: 13px;
  color: var(--warning);
}

/* Phone mockup */
.phone {
  width: 300px;
  flex-shrink: 0;
  margin: 0 auto;
}
.phone-frame {
  border-radius: 42px;
  border: 1px solid rgba(242, 244, 238, 0.18);
  background: #0b0d0a;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  height: 580px;
  display: flex;
  flex-direction: column;
}
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 10px;
}
.phone-title {
  font-weight: 800;
  font-size: 16px;
}
.phone-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(242, 244, 238, 0.5);
  letter-spacing: 1px;
}
.live-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(200, 245, 66, 0.12);
  border: 1px solid rgba(200, 245, 66, 0.4);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: rrPulse 2s infinite;
}
.live-pill span.label {
  font-weight: 700;
  font-size: 9px;
  color: var(--lime);
}

.phone-map {
  flex: 1;
  margin: 6px 12px 12px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: #1b2016;
  background-image:
    repeating-radial-gradient(ellipse 70% 110% at 22% 30%, transparent 0 21px, rgba(200, 245, 66, 0.06) 21px 22px),
    repeating-radial-gradient(ellipse 100% 55% at 72% 68%, transparent 0 27px, rgba(255, 255, 255, 0.04) 27px 28px),
    radial-gradient(circle at 12% 85%, rgba(110, 140, 60, 0.16), transparent 55%);
}
.phone-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.phone-rider {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.phone-rider .dot {
  border-radius: 50%;
  border: 3px solid var(--bg);
}
.phone-rider .name {
  font-weight: 700;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}
.phone-stats-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(20, 22, 19, 0.88);
  border: 1px solid rgba(200, 245, 66, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-around;
}
.phone-stats-bar .stat {
  text-align: center;
}
.phone-stats-bar .stat .val {
  font-weight: 800;
  font-size: 16px;
  color: var(--lime);
}
.phone-stats-bar .stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(242, 244, 238, 0.5);
  letter-spacing: 1px;
}

.phone-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 6px 10px 18px;
  border-top: 1px solid rgba(242, 244, 238, 0.12);
}
.phone-tabbar .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(242, 244, 238, 0.42);
}
.phone-tabbar .item.active {
  color: var(--lime);
}
.phone-tabbar .item span {
  font-weight: 700;
  font-size: 9px;
}

@keyframes rrPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 245, 66, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(200, 245, 66, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 245, 66, 0);
  }
}
@keyframes rrDash {
  to {
    stroke-dashoffset: -240;
  }
}

/* ---------- Section headers / grids ---------- */

section.block {
  padding: 70px 0;
}
section.block h2 {
  letter-spacing: -1.5px;
  font-size: 38px;
  margin-bottom: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step-card,
.feature-card {
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  padding: 26px;
}
.feature-card {
  border: 1px solid rgba(200, 245, 66, 0.25);
}
.step-card .num {
  font-weight: 900;
  font-style: italic;
  font-size: 44px;
  color: var(--lime);
  line-height: 1;
}
.step-card .title,
.feature-card .title {
  font-weight: 800;
  font-size: 18px;
  margin: 14px 0 8px;
}
.feature-card .title {
  font-size: 20px;
}
.step-card .desc,
.feature-card .desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(242, 244, 238, 0.7);
}

/* ---------- Gallery (static decorative phone mockups) ---------- */

.gallery-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-phone {
  width: 240px;
  border-radius: 34px;
  border: 1px solid rgba(242, 244, 238, 0.18);
  background: #0b0d0a;
  padding: 8px;
}
.gallery-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  height: 460px;
  display: flex;
  flex-direction: column;
}
.gallery-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- Join box ---------- */

.join-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 32px;
  text-align: center;
}
.join-box {
  background: var(--surface-raised);
  border: 1px solid rgba(200, 245, 66, 0.25);
  border-radius: var(--radius-card);
  padding: 48px 40px;
}
.join-box h2 {
  letter-spacing: -1.5px;
  font-size: 32px;
  margin-bottom: 10px;
}
.join-box p {
  margin: 0 0 26px;
  font-size: 15px;
  color: rgba(242, 244, 238, 0.7);
}
.login-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.login-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--lime);
}
.login-field .code-input {
  width: 200px;
  height: 52px;
  background: var(--bg);
  font-size: 18px;
  letter-spacing: 7px;
}
.login-submit-btn {
  justify-content: center;
  margin: 0 auto;
  height: 52px;
  padding: 0 26px;
  border: none;
  background: var(--lime);
  color: var(--bg);
  font-size: 15px;
}
.login-submit-btn:hover {
  background: var(--lime-hover);
}
.hero-login-hint {
  cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(242, 244, 238, 0.12);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 32px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand {
  cursor: default;
  margin-bottom: 14px;
}
.footer-brand .desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(242, 244, 238, 0.5);
}
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(242, 244, 238, 0.42);
}
.footer-legal a {
  color: rgba(242, 244, 238, 0.6);
  margin-left: 14px;
}
.footer-legal a:hover {
  color: var(--lime);
}

/* ---------- App (web viewer) view ---------- */

.app-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}
.app-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.app-view-title {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -1px;
  font-size: 28px;
}
.app-view-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.group-code-pill {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--lime);
  background: rgba(200, 245, 66, 0.12);
  border: 1px solid rgba(200, 245, 66, 0.4);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  cursor: pointer;
}
.rider-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(242, 244, 238, 0.5);
  letter-spacing: 1px;
}

.karte-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}
#map,
#strecken-map {
  height: 560px;
  border-radius: 18px;
  background: #1b2016;
}
/* Grayscale only the base tiles (Leaflet's own tile pane), not the rider
   markers/trail line drawn in the marker/overlay panes above it — matches
   the same ColorFilter.matrix grayscale applied to the Flutter app's maps
   (see map_screen.dart's _grayscaleTileFilter) for the same reason: the
   lime/white markers read far more clearly against a desaturated map. */
#map .leaflet-tile-pane,
#strecken-map .leaflet-tile-pane {
  filter: grayscale(1);
}
.map-stats-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(20, 22, 19, 0.88);
  border: 1px solid rgba(200, 245, 66, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}
.map-wrap {
  position: relative;
}
.map-stats-bar .stat {
  text-align: center;
}
.map-stats-bar .stat .val {
  font-weight: 800;
  font-size: 22px;
  color: var(--lime);
}
.map-stats-bar .stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(242, 244, 238, 0.5);
  letter-spacing: 1px;
}

.rider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rider-list-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(242, 244, 238, 0.5);
  padding: 4px 2px;
}
.rider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised);
  border: 1px solid rgba(242, 244, 238, 0.06);
  border-radius: 14px;
  padding: 12px;
}
.avatar {
  position: relative;
  flex-shrink: 0;
}
.avatar .circle {
  border-radius: 50%;
  background: var(--avatar-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.avatar .presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.rider-row .name {
  font-weight: 700;
  font-size: 14px;
}
.rider-row .status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(242, 244, 238, 0.5);
  letter-spacing: 0.5px;
}

/* Album */
.album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.album-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(242, 244, 238, 0.5);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.album-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-row);
}
.album-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Rangliste */
.rang-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px 0;
}
.podium-col {
  flex: 1;
  max-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.podium-bar {
  width: 100%;
  border-radius: 12px 12px 0 0;
  background: var(--surface-row);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.podium-bar.first {
  background: linear-gradient(180deg, rgba(200, 245, 66, 0.25), rgba(200, 245, 66, 0.05));
}
.podium-bar .rank {
  font-weight: 900;
  color: rgba(242, 244, 238, 0.7);
}
.podium-bar.first .rank {
  color: var(--lime);
}
.podium-bar .km {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(242, 244, 238, 0.5);
}
.podium-bar.first .km {
  color: var(--lime);
}
.rang-list {
  border-top: 1px solid rgba(242, 244, 238, 0.12);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rang-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-raised);
  border-radius: 14px;
  padding: 14px 18px;
}
.rang-row .rank {
  font-weight: 900;
  font-size: 17px;
  width: 22px;
}
.rang-row .name {
  font-weight: 700;
  font-size: 15px;
  flex: 1;
}
.rang-row .km {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
}

/* Rudel tab */
.rudel-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.rudel-code-card {
  background: rgba(200, 245, 66, 0.12);
  border: 1px solid rgba(200, 245, 66, 0.4);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}
.rudel-code-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(242, 244, 238, 0.5);
  margin-bottom: 8px;
}
.rudel-code-card .code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 8px;
  color: var(--lime);
  margin-bottom: 16px;
}
.btn-block {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-block.solid {
  background: var(--lime);
  color: var(--bg);
  border: none;
}
.btn-block.solid:hover {
  background: var(--lime-hover);
}
.btn-block.outline {
  background: transparent;
  border: 1px solid rgba(242, 244, 238, 0.12);
  color: var(--text);
}
.btn-block.outline:hover {
  border-color: rgba(200, 245, 66, 0.4);
  color: var(--lime);
}
.more-in-app-card {
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  padding: 24px;
}
.more-in-app-card .title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}
.more-in-app-card .desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(242, 244, 238, 0.7);
  margin-bottom: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(242, 244, 238, 0.5);
  font-size: 14px;
}

/* ---------- Sub-navigation within a tab (Karte's Live/Strecken,
   Wettkampf's Rangliste/Challenges/Rekorde, Rudel's
   Mitglieder/Album/Infos) — same visual language as .tab-pill, one size
   down, matching the app's own SegmentedToggle widget. ---------- */
.seg-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-raised);
  border: 1px solid rgba(242, 244, 238, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 16px;
}
.seg-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  color: rgba(242, 244, 238, 0.7);
  white-space: nowrap;
}
.seg-btn.active {
  background: var(--lime);
  color: var(--bg);
}

/* ---------- Strecken (route history) day chips ---------- */
.day-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.day-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  color: rgba(242, 244, 238, 0.7);
  border: 1px solid rgba(242, 244, 238, 0.12);
}
.day-chip.active {
  background: var(--lime);
  color: var(--bg);
  border-color: transparent;
}

/* ---------- Rekorde ---------- */
.rekorde-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(242, 244, 238, 0.5);
  margin: 18px 0 8px;
}
.rekorde-section-label:first-child {
  margin-top: 0;
}
.rekorde-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-raised);
  border: 1px solid rgba(200, 245, 66, 0.2);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.rekorde-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(200, 245, 66, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.rekorde-card .body {
  flex: 1;
}
.rekorde-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(242, 244, 238, 0.5);
  margin-bottom: 4px;
}
.rekorde-card .value {
  font-weight: 800;
  font-size: 20px;
  color: var(--lime);
}
.rekorde-card .rider {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(242, 244, 238, 0.6);
}

/* ---------- Challenges (Etappen) ---------- */
.challenges-list {
  max-width: 640px;
}
.challenge-card {
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.challenge-card .row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.challenge-card .day {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  color: rgba(242, 244, 238, 0.5);
  width: 28px;
  flex-shrink: 0;
}
.challenge-card .name {
  font-weight: 800;
  font-size: 15px;
}
.challenge-card .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(242, 244, 238, 0.5);
  margin-top: 3px;
}

/* ---------- Infos ---------- */
.infos-body {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-card {
  background: var(--surface-raised);
  border: 1px solid rgba(242, 244, 238, 0.1);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}
.info-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--lime);
  margin-bottom: 8px;
}
.info-card .title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}
.info-card .desc {
  font-size: 13px;
  color: rgba(242, 244, 238, 0.7);
  line-height: 1.5;
}

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 99;
  background: var(--surface-row);
  border: 1px solid rgba(200, 245, 66, 0.4);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  display: none;
}
#toast.show {
  display: block;
}

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 60px;
  }
  .hero h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .karte-layout,
  .rudel-layout {
    grid-template-columns: 1fr;
  }
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-landing {
    display: none;
  }
}
