:root {
  --ink: #0b2c44;
  --asphalt: #0a3d62;
  --mid: #1e6b8a;
  --aqua: #2aa3c7;
  --sun: #ffcc33;
  --sun-hot: #f4b400;
  --mist: #e7f4fb;
  --paper: #ffffff;
  --line: rgba(11, 44, 68, 0.12);
  --shadow: 0 20px 50px rgba(10, 61, 98, 0.16);
  --radius: 4px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background: linear-gradient(180deg, #eaf6fc 0%, #ffffff 28%, #f7fbfe 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--asphalt);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(10, 61, 98, 0.82), transparent);
  color: white;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

/* Leaflet-Karten liegen über z-index 400 – Nav muss darüber bleiben */
.page-live-map .site-nav,
.page-route-planner .site-nav,
.page-track-token .site-nav {
  z-index: 2000;
}

.site-nav > .site-menu {
  margin-left: auto;
}

.site-nav.is-scrolled {
  background: rgba(10, 61, 98, 0.97);
  color: white;
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.25);
  border-bottom: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.45rem;
  color: inherit;
  line-height: 1;
}

.brand-text {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  overflow: visible;
}

.brand-ruhr,
.brand-tzi {
  letter-spacing: 0.03em;
  color: #fff;
}

.brand-oe {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--sun);
  margin: 0 0.04em;
  line-height: 0;
  overflow: visible;
}

.oe-wheel {
  /* viewBox 120×148 → Rad bleibt geometrisch rund */
  width: 0.88em;
  height: auto;
  aspect-ratio: 120 / 148;
  display: block;
  overflow: visible;
  transform: translateY(0.06em);
}

.hero-brand .oe-wheel {
  width: 0.8em;
  transform: translateY(0.08em);
}

.hero-brand {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(3.6rem, 13vw, 7.5rem);
  line-height: 0.92;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease 0.3s forwards;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  overflow: visible;
}

.hero-brand .brand-ruhr,
.hero-brand .brand-tzi {
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-brand .brand-oe {
  color: var(--sun);
  margin: 0 0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.92;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--sun);
}

.nav-links a[aria-current='page'] {
  color: var(--sun);
  opacity: 1;
}

.nav-group {
  position: relative;
}

.nav-group__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.92;
}

.nav-group__btn:hover,
.nav-group.is-current > .nav-group__btn,
.nav-group.is-open > .nav-group__btn {
  opacity: 1;
  color: var(--sun);
}

.nav-group__caret {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
}

.nav-group__panel {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 641px) {
  .nav-group__panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 11rem;
    padding: 0.45rem 0;
    background: rgba(7, 28, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    display: none;
    z-index: 70;
  }

  .nav-group.is-open > .nav-group__panel,
  .nav-group:focus-within > .nav-group__panel {
    display: block;
  }

  .nav-group__panel a {
    display: block;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
  }
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 61, 98, 0.35);
  border-radius: 4px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 60;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

html.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

html.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

html.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 86vh;
  min-height: 86dvh;
  display: grid;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 61, 98, 0.82) 0%, rgba(10, 61, 98, 0.48) 48%, rgba(10, 61, 98, 0.65) 100%),
    linear-gradient(180deg, transparent 40%, rgba(10, 61, 98, 0.6) 100%),
    url("/ruhr-oetzi/assets/ruhr-oetzi-hero-summer.png") center / cover no-repeat;
  transform: scale(1.03);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1%, -0.8%, 0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0 clamp(2.5rem, 6vh, 4rem);
}

.hero-kicker {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s ease 0.2s forwards;
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease 0.42s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease 0.55s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.3rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  color: inherit;
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sun);
  color: var(--ink);
}

.btn-primary:hover {
  background: #ffe066;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Helle Karten (Tracking-App): Ghost-Buttons lesbar */
.track-token-card .btn-ghost,
.track-token-page .form-actions .btn-ghost,
.page-app-home .btn-ghost {
  background: #fff;
  border-color: var(--line, #c5d0da);
  color: var(--blue, #0a3d62);
}

.track-token-card .btn-ghost:hover,
.track-token-page .form-actions .btn-ghost:hover,
.page-app-home .btn-ghost:hover {
  background: rgba(10, 61, 98, 0.06);
  border-color: var(--blue, #0a3d62);
  color: var(--blue, #0a3d62);
}

/* —— Countdown + tiles (kein Überlappen) —— */
.countdown-band {
  background: var(--asphalt);
  color: white;
  padding: 1.35rem 0;
}

.countdown-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.countdown-label {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 1.15rem;
}

.countdown-label span {
  color: var(--sun);
}

.countdown-units {
  display: flex;
  gap: 0.65rem;
}

.countdown-unit {
  min-width: 4.2rem;
  text-align: center;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.countdown-unit strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.countdown-unit span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.action-tiles-wrap {
  background: var(--mist);
  padding: 1.5rem 0 0.5rem;
}

.action-tiles {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.action-tile {
  display: grid;
  align-content: end;
  min-height: 72px;
  padding: 0.55rem 0.5rem;
  text-decoration: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  background: linear-gradient(160deg, #0a3d62, #1e6b8a);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.action-tile:nth-child(2) {
  background: linear-gradient(160deg, #147a9c, #2aa3c7);
}

.action-tile:nth-child(3) {
  background: linear-gradient(160deg, #c48a00, #f4b400);
  color: #0b2c44;
}

.action-tile:nth-child(4) {
  background: linear-gradient(160deg, #0b2c44, #14506f);
}

.action-tile:nth-child(5) {
  background: linear-gradient(160deg, #0a3d62, #1e6b8a);
}

.action-tile:nth-child(6) {
  background: linear-gradient(160deg, #147a9c, #2aa3c7);
}

.action-tile:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

.action-tile small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  line-height: 1.2;
  opacity: 0.88;
}

/* —— Sections —— */
.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.section-head p,
.prose p,
.about-copy > p {
  margin: 0;
  color: rgba(11, 44, 68, 0.78);
  font-size: 1.05rem;
}

.about-copy > p + p {
  margin-top: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.fact {
  padding: 1rem 0;
  border-top: 2px solid var(--sun);
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fact span {
  color: rgba(11, 44, 68, 0.65);
  font-size: 0.95rem;
}

.routes-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.routes-map-block {
  margin-bottom: 1.75rem;
}

.route-map {
  height: min(58vh, 520px);
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #dce8f0;
  z-index: 1;
}

.route-map[hidden] {
  display: none !important;
}

.routes-map-block.is-no-gpx .route-map {
  display: none;
}

.routes-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0 1rem;
}

.routes-map-meta p {
  margin: 0;
  flex: 1 1 240px;
  color: rgba(11, 44, 68, 0.72);
  font-size: 0.95rem;
}

.climb-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  flex: 1 1 100%;
  font-size: 0.88rem;
  color: rgba(11, 44, 68, 0.78);
}

.climb-legend__swatch {
  display: inline-block;
  width: 1.35rem;
  height: 0.35rem;
  border-radius: 2px;
  vertical-align: middle;
}

.climb-legend__swatch--climb {
  background: #7a3b12;
}

.climb-legend__swatch--rank {
  background: #8b1e5a;
}

.leaflet-div-icon.climb-badge {
  background: transparent;
  border: none;
}

.climb-badge span {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  background: rgba(122, 59, 18, 0.92);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(11, 44, 68, 0.2);
}

.climb-badge.is-ranking span {
  background: rgba(139, 30, 90, 0.95);
}

.route-elev {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}

.route-elev-svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1000 / 220;
  background: #fff;
}

.route-elev img {
  width: 100%;
  height: auto;
  display: block;
}

.route-elev img[hidden] {
  display: none !important;
}

.route-elev figcaption {
  padding: 0.55rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(10, 61, 98, 0.06);
}

.routes-stage img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.routes-stage figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  background: rgba(10, 61, 98, 0.85);
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.route-list {
  display: grid;
  gap: 0.75rem;
}

.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font: inherit;
  color: inherit;
  width: 100%;
}

.route:hover,
.route.is-active {
  border-color: rgba(244, 180, 0, 0.65);
  background: #fff;
  transform: translateY(-1px);
}

.route-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  background: #0a3d62;
  color: white;
}

.route[data-route="B"] .route-badge { background: #1e6b8a; }
.route[data-route="C"] .route-badge { background: #2aa3c7; }
.route[data-route="D"] .route-badge { background: #f4b400; color: #0b2c44; }
.route[data-route="E"] .route-badge { background: #0b2c44; }

.route h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.route p {
  margin: 0;
  color: rgba(11, 44, 68, 0.68);
  font-size: 0.95rem;
}

.route-meta {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.route-meta small {
  display: block;
  font-weight: 600;
  opacity: 0.65;
}

.route-detail {
  margin-top: 1.1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--asphalt);
  color: #f4fafd;
}

.route-detail[hidden] {
  display: none;
}

.route-detail h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.route-detail p {
  margin: 0;
  color: rgba(244, 250, 253, 0.85);
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flow-item {
  padding-top: 1rem;
  border-top: 3px solid var(--sun);
}

.flow-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.flow-item p {
  margin: 0;
  color: rgba(11, 44, 68, 0.7);
  font-size: 0.95rem;
}

.signup {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.signup-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full,
.form-grid > .full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  min-height: 2.75rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 1rem; /* iOS: kein Auto-Zoom bei Fokus */
  line-height: 1.3;
  color: var(--ink);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input[type="radio"],
.field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--blue, #0a3d62);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(42, 163, 199, 0.35);
  border-color: var(--aqua);
}

.check {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  column-gap: 0.7rem;
  align-items: start;
  width: 100%;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--asphalt);
  cursor: pointer;
}

.check span {
  min-width: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(11, 44, 68, 0.65);
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-ok {
  background: rgba(30, 107, 138, 0.12);
  color: var(--mid);
}

.form-status.is-err {
  background: rgba(196, 138, 0, 0.15);
  color: #8a5a00;
}

.tracking-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 61, 98, 0.95), rgba(30, 107, 138, 0.9)),
    url("/ruhr-oetzi/assets/ruhr-oetzi-routes.png") center / cover;
  color: #f4fafd;
  box-shadow: var(--shadow);
}

.tracking-box h2 {
  margin: 0 0 0.6rem;
  color: white;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.tracking-box p {
  margin: 0;
  color: rgba(244, 250, 253, 0.85);
}

.tracking-box .btn {
  margin-top: 1.1rem;
}

.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(11, 44, 68, 0.65);
  font-size: 0.95rem;
}

.site-footer strong {
  font-family: var(--font-display);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-footer a {
  color: var(--mid);
}

/* Tracking page */
.track-page {
  min-height: 100vh;
  padding: 5.5rem 0 2rem;
}

.track-layout {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  min-height: calc(100vh - 7rem);
}

.track-controls {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  align-self: start;
}

.track-controls h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.track-controls p {
  margin: 0 0 1rem;
  color: rgba(11, 44, 68, 0.7);
  font-size: 0.95rem;
}

/* Token-Tracker (Phase 3) */
.track-token-page {
  display: flex;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-x: clip;
}

.track-token-card {
  width: min(100%, var(--max));
  max-width: 100%;
  min-width: 0;
  padding: 1.5rem clamp(1.35rem, 3vw, 2rem) 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  overflow-x: clip;
}

.track-token-card h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.track-token-card .lede {
  margin: 0 0 1rem;
  color: rgba(11, 44, 68, 0.75);
  line-height: 1.45;
}

.track-token-card .hint {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: rgba(11, 44, 68, 0.65);
}

.track-quick-links {
  margin: 0 0 1.25rem;
}

.track-quick-links .btn {
  display: inline-flex;
  width: auto;
  text-decoration: none;
}

.app-home-card .app-home-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.app-home-actions--icons {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.app-home-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.5rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--line, #c5d0da);
  background: #fff;
  color: #0a3d62;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.app-home-tile svg {
  width: 1.75rem;
  height: 1.75rem;
}

.app-home-tile:hover {
  transform: translateY(-2px);
  background: rgba(10, 61, 98, 0.06);
  border-color: #0a3d62;
}

.app-home-tile:first-child {
  background: var(--sun, #f0c14a);
  border-color: transparent;
  color: #0b2c44;
}

.app-home-tile:first-child:hover {
  background: #ffe066;
}

.app-home-actions .btn {
  text-align: center;
  text-decoration: none;
  justify-content: center;
}

.app-home-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.75rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue, #0a3d62);
  line-height: 0.95;
}

.app-home-brand .brand-ruhr,
.app-home-brand .brand-tzi {
  color: inherit;
}

.app-home-brand .brand-oe {
  color: var(--sun, #f0c14a);
}

.install-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: rgba(11, 44, 68, 0.85);
  line-height: 1.45;
}

.install-steps li + li {
  margin-top: 1.1rem;
}

.install-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue, #0a3d62);
}

.install-steps p {
  margin: 0.35rem 0 0;
}

.btn.is-disabled,
a.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Capacitor / App-Leiste */
html.has-app-bar body,
html.is-native-app body {
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

.native-app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 24, 36, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}

.native-app-bar__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius, 8px);
  background: transparent;
  color: #f2f6f9;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
}

.native-app-bar__btn.is-active {
  background: #f0c14a;
  border-color: #f0c14a;
  color: #0a3d62;
}

.tracking-live-chip {
  position: fixed;
  top: calc(0.65rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1250;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 61, 98, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(10, 61, 98, 0.25);
  pointer-events: none;
}

.live-overlay {
  position: fixed;
  inset: 0 0 calc(4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  background: #eaf6fc;
}

.live-overlay[hidden] {
  display: none !important;
}

.live-overlay__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #eaf6fc;
}

html.is-live-embed .site-nav,
html.is-live-embed .native-app-bar {
  display: none !important;
}

html.is-live-embed body {
  padding-bottom: 0 !important;
}

html.is-live-embed .live-page .live-layout {
  min-height: 100vh;
  min-height: 100dvh;
}

.prep-extras {
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 61, 98, 0.03);
}

.prep-extras summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(11, 44, 68, 0.8);
}

.prep-extras .field {
  margin-top: 0.65rem;
}

.custom-route-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.55rem 0 0.75rem;
}

.custom-route-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.custom-route-row em {
  font-style: normal;
  opacity: 0.65;
  margin-left: 0.35rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.custom-route-row .btn {
  flex-shrink: 0;
}

#custom-routes-panel input[type='file'],
#custom-routes-panel #gpx-name {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.track-status-grid--compact {
  grid-template-columns: 1fr 1fr;
}

body.is-app-compact .track-token-card {
  padding: 1.1rem 1rem 1.25rem;
}

body.is-app-compact .track-token-card h1 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

body.is-app-compact .track-note {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
}

body.is-app-compact .track-status-grid {
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

body.is-app-compact .site-nav .nav-links {
  display: none;
}

.track-note {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 61, 98, 0.18);
  background: rgba(10, 61, 98, 0.05);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(11, 44, 68, 0.82);
}

.track-note strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--blue, #0a3d62);
}

.track-note ul {
  margin: 0;
  padding-left: 1.15rem;
}

.track-note li + li {
  margin-top: 0.35rem;
}

.track-note .track-quick-links {
  margin: 0.85rem 0 0;
}

.checkbox-field label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
}

.checkbox-field input[type='checkbox'] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkbox-copy {
  display: grid;
  gap: 0.2rem;
}

.checkbox-copy strong {
  font-size: 0.98rem;
}

.checkbox-copy small {
  display: block;
  color: rgba(10, 24, 40, 0.74);
  line-height: 1.45;
}

.checkbox-copy a {
  color: inherit;
  text-decoration: underline;
}

.track-privacy-card {
  margin: 0.25rem 0 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(10, 61, 98, 0.12);
  border-radius: 16px;
  background: rgba(10, 61, 98, 0.04);
}

.track-privacy-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.track-privacy-card p {
  margin: 0.4rem 0 0;
  line-height: 1.55;
}

.track-privacy-card--legal {
  margin-top: 1.25rem;
}

.route-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0.5rem;
}

.route-fieldset legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.route-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .route-options {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}

.route-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.route-option:has(input:checked) {
  border-color: var(--blue, #0a3d62);
  box-shadow: inset 0 0 0 1px var(--blue, #0a3d62);
}

.route-option > span:last-child {
  min-width: 0;
  flex: 1;
}

.route-option strong {
  display: block;
  overflow-wrap: anywhere;
}

.route-option small {
  display: block;
  color: rgba(11, 44, 68, 0.65);
  overflow-wrap: anywhere;
}

.route-option-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.success-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.success-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tracking-link-box {
  word-break: break-all;
  padding: 0.75rem;
  background: rgba(10, 61, 98, 0.06);
  border-radius: var(--radius);
}

.active-panel {
  margin-top: 0.5rem;
}

.track-live-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(11, 44, 68, 0.08);
}

.track-live-badge.is-active {
  background: #0a3d62;
  color: #fff;
}

.track-live-badge.is-paused {
  background: #f4b400;
  color: #0b2c44;
}

.track-live-badge.is-done {
  background: rgba(11, 44, 68, 0.2);
}

.track-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}

.track-status-grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(11, 44, 68, 0.55);
}

.track-status-grid dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

.track-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.linkish {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

body[data-track-theme='dark'] {
  background: #071824;
  color: #e8eef3;
}

body[data-track-theme='dark'] .site-nav {
  background: rgba(7, 24, 36, 0.92);
}

body[data-track-theme='dark'] .track-token-card {
  background: #0d2433;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8eef3;
}

body[data-track-theme='dark'] .track-token-card .lede,
body[data-track-theme='dark'] .track-token-card .hint,
body[data-track-theme='dark'] .track-status-grid dt {
  color: rgba(232, 238, 243, 0.7);
}

body[data-track-theme='dark'] .track-note {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(232, 238, 243, 0.85);
}

body[data-track-theme='dark'] .track-note strong {
  color: #f0c14a;
}

body[data-track-theme='dark'] .field input,
body[data-track-theme='dark'] .field select {
  background: #071824;
  color: #e8eef3;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Live-Karte */
.live-page .live-layout {
  min-height: calc(100vh - 5.5rem);
}

html.has-app-bar .live-page .live-layout {
  min-height: calc(100vh - 5.5rem - 4.25rem);
}

#live-map {
  min-height: 60vh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #dfe8ef;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
}

@media (max-width: 860px) {
  .live-page .live-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .live-page .live-controls {
    padding: 0.85rem 1rem 0.5rem;
  }

  .live-page .live-controls h1 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .live-page .live-controls .hint,
  .live-page .live-controls .status-legend,
  .live-page .live-controls .btn-primary,
  .live-page .live-controls > p:last-of-type {
    display: none;
  }

  .live-page #live-map {
    min-height: 58vh;
    flex: 1;
  }
}

.status-legend {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(11, 44, 68, 0.75);
}

.status-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0;
}

.status-legend .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #999;
}

.status-legend .dot.is-active { background: #0a3d62; }
.status-legend .dot.is-delayed { background: #f4b400; }
.status-legend .dot.is-offline { background: #999; }
.status-legend .dot.is-finished { background: #bbb; }

.rider-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.rider-pick span {
  font-size: 0.85rem;
  color: rgba(11, 44, 68, 0.65);
}

@media (max-width: 860px) {
  .live-layout {
    grid-template-columns: 1fr !important;
  }
  #live-map {
    min-height: 50vh;
    order: -1;
  }
}

.trail-map {
  height: 240px;
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.trail-panel {
  margin-top: 1rem;
}

.trail-playback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.trail-clock {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--blue, #0a3d62);
}

.trail-speed {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(11, 44, 68, 0.75);
}

.trail-speed select {
  font: inherit;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}

.trail-scrub {
  width: 100%;
  margin: 0 0 0.35rem;
  accent-color: var(--blue, #0a3d62);
}

.climb-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.climb-box h2,
.ranking-board h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
}

.climb-box ul,
.ranking-board ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.rankings {
  display: grid;
  gap: 1.5rem;
}

.ranking-board {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

#map {
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #d7e8f0;
}

.rider-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  max-height: 220px;
  overflow: auto;
}

.rider-list li {
  padding: 0.55rem 0.7rem;
  border-radius: 2px;
  background: rgba(10, 61, 98, 0.06);
  font-size: 0.9rem;
}

/* —— Teilnehmer:innenliste (Organisator:in) —— */
.teilnehmer-page {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
}

.teilnehmer-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.teilnehmer-public {
  margin: 1.5rem 0 2.5rem;
}

.teilnehmer-admin {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.aktuelles-admin {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aktuelles-admin-form {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
}

.aktuelles-admin-form textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

.aktuelles-section .section-head {
  margin-bottom: 1.25rem;
}

.aktuelles-updated {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: rgba(11, 44, 68, 0.65);
}

.aktuelles-card {
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(11, 44, 68, 0.88);
  white-space: pre-wrap;
}

.aktuelles-card p {
  margin: 0 0 0.85rem;
}

.aktuelles-card p:last-child {
  margin-bottom: 0;
}

.teilnehmer-admin-head {
  margin-bottom: 1rem;
}

.teilnehmer-admin-head h2 {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.teilnehmer-head h1 {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.teilnehmer-lead {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--muted, #5a6a7a);
  font-size: 1.02rem;
  line-height: 1.45;
}

.teilnehmer-head code {
  font-size: 0.9em;
  background: rgba(10, 61, 98, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.teilnehmer-gate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
  margin: 1.5rem 0 2rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.teilnehmer-gate .field {
  flex: 1 1 220px;
  margin: 0;
}

.teilnehmer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.track-admin-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 9.5rem;
}

.track-admin-actions .btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.55rem;
  letter-spacing: 0.03em;
  transform: none;
  white-space: nowrap;
}

.track-admin-actions .btn:hover {
  transform: none;
}

/* Tabelle ist hell: Ghost-Buttons dürfen nicht weiß sein */
.teilnehmer-table .btn-ghost,
.track-admin-actions .btn-ghost {
  background: #fff;
  border-color: var(--line, #c5d0da);
  color: var(--blue, #0a3d62);
}

.teilnehmer-table .btn-ghost:hover,
.track-admin-actions .btn-ghost:hover {
  background: rgba(10, 61, 98, 0.06);
  border-color: var(--blue, #0a3d62);
  color: var(--blue, #0a3d62);
}

.track-admin-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.teilnehmer-table td.track-admin-actions,
.teilnehmer-table .track-admin-actions {
  vertical-align: middle;
}

.teilnehmer-count {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.teilnehmer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-end;
}

.teilnehmer-filters label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(11, 44, 68, 0.7);
}

.teilnehmer-filters select,
.teilnehmer-filters input {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 8rem;
}

.teilnehmer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.teilnehmer-stat {
  padding: 0.35rem 0.7rem;
  background: rgba(10, 61, 98, 0.07);
  border-radius: 2px;
  font-size: 0.92rem;
}

.teilnehmer-stat strong {
  margin-right: 0.35rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.teilnehmer-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.teilnehmer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.teilnehmer-table th,
.teilnehmer-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.teilnehmer-table th {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  background: rgba(10, 61, 98, 0.06);
  white-space: nowrap;
}

.teilnehmer-table tbody tr:last-child td {
  border-bottom: none;
}

.teilnehmer-table a {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.teilnehmer-wish {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(11, 44, 68, 0.7);
}

@media (max-width: 900px) {
  .about-grid,
  .signup,
  .tracking-box,
  .track-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .facts,
  .flow-strip {
    grid-template-columns: 1fr 1fr;
  }

  .action-tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .action-tile {
    min-height: 64px;
    padding: 0.45rem 0.35rem;
    font-size: clamp(0.62rem, 1.6vw, 0.78rem);
  }

  .action-tile small {
    font-size: 0.58rem;
  }

  .route {
    grid-template-columns: auto 1fr;
  }

  .route-meta {
    grid-column: 2;
    text-align: left;
  }

  .track-token-card {
    padding: 1.15rem 1rem 1.35rem;
  }

  .track-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .track-quick-links .btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Ohne Hamburger: Links verstecken (alte Unterseiten) */
  .site-nav > nav:not(.site-menu) .nav-links,
  .site-nav > .nav-links {
    display: none;
  }

  .site-menu {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    z-index: 55;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.25rem 1.5rem;
    background: rgba(7, 28, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  html.nav-open .site-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  html.nav-open body {
    overflow: hidden;
  }

  .site-menu .nav-links {
    display: grid;
    gap: 0.15rem;
    width: min(100%, 22rem);
    margin: 0 auto;
  }

  .site-menu .nav-links a {
    display: block;
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    color: #f2f6f9;
  }

  .site-menu .nav-group__btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    color: #f2f6f9;
  }

  .site-menu .nav-group__panel {
    display: none;
    padding: 0 0 0.35rem 0.85rem;
  }

  .site-menu .nav-group.is-open > .nav-group__panel,
  .site-menu .nav-group.is-current > .nav-group__panel {
    display: block;
  }

  .site-menu .nav-group__panel a {
    font-size: 1.05rem;
    opacity: 0.9;
  }

  .action-tiles-wrap {
    display: none;
  }

  .facts,
  .flow-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .signup-panel,
  .form-grid,
  .field,
  .route-fieldset,
  .route-options {
    min-width: 0;
    max-width: 100%;
  }

  .countdown-units {
    width: 100%;
    justify-content: space-between;
  }

  .hero-brand {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.32s; }

@media (max-width: 720px) {
  .reveal {
    transform: translate3d(0, 18px, 0);
  }
}

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

  .hero-media {
    transform: none;
  }

  .hero-logo,
  .hero-kicker,
  .hero-brand,
  .hero-lead,
  .hero-actions,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Streckenberatung */
.advisor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.advisor-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line, #d5dde6);
  border-radius: 12px;
}
.advisor-form h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.advisor-nav {
  margin-top: 1.25rem;
  gap: 0.75rem;
}
.advisor-result {
  margin-top: 1.5rem;
}
.advisor-card h3 {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.advisor-scenario {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent, #c45c26);
}
.advisor-scenario h5 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.advisor-score-table {
  margin-top: 0.5rem;
}

/* Strecken-Planer – etwas breiter als Standard-Content, Topbar bleibt full-bleed */
.planner-page .planner-layout {
  width: min(100% - 1.25rem, 1480px);
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 0.85rem;
  min-height: calc(100vh - 5.5rem);
  height: calc(100vh - 5.5rem);
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
}

.planner-page .planner-controls {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  align-self: stretch;
  padding: 0.85rem 0.9rem;
}

.planner-page .planner-map-col {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}

.planner-page .planner-controls .prep-extras {
  margin: 0.25rem 0;
  padding: 0.4rem 0.55rem;
}

.planner-page .planner-form {
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.planner-page .planner-day-summary {
  margin: 0.35rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
}

.planner-page .planner-day-summary h2 {
  display: none;
}

.planner-lede {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: rgba(11, 44, 68, 0.78);
}

.planner-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.planner-note {
  margin: 0.5rem 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1.35;
  background: rgba(240, 193, 74, 0.18);
  border-left: 3px solid #f0c14a;
  color: #0b2c44;
}

.draw-wp-icon {
  background: transparent;
  border: 0;
}

.draw-wp-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #c45c26;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
}

.draw-wp-badge:active {
  cursor: grabbing;
}

.leaflet-marker-draggable .draw-wp-badge {
  outline: 2px solid #0a3d62;
}

#planner-map.is-draw-mode,
#planner-map.is-street-view-mode {
  cursor: crosshair;
}

/* Planer: sekundäre Buttons lesbar auf hellem Panel */
.planner-controls--compact .planner-title {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
}

.planner-meta-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.55rem;
  align-items: end;
}

.planner-meta-row .field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(11, 44, 68, 0.65);
}

.planner-meta-row .field input {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.45rem 0.55rem;
}

.planner-meta-row .field:last-child input {
  min-width: 4.75rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.btn-chip {
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #0a3d62;
  background: #fff;
  color: #0a3d62;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
}

.btn-chip.is-on {
  background: rgba(10, 61, 98, 0.14);
}

.route-alts-panel {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.route-alt-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line, #c5d0da);
  background: #fff;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  font: inherit;
  color: #0b2c44;
}

.route-alt-card.is-current {
  border-color: #0a3d62;
  background: rgba(10, 61, 98, 0.06);
  cursor: default;
}

.route-alt-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.route-alt-main {
  font-weight: 600;
  font-size: 0.88rem;
}

.route-alt-delta {
  font-size: 0.78rem;
  color: rgba(11, 44, 68, 0.65);
}

.planner-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.planner-stage.is-street-drive {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 38%);
  border: 1px solid var(--line, #c5d0da);
  border-radius: var(--radius);
  overflow: hidden;
}

.planner-stage.is-street-drive .planner-map-shell {
  height: min(58vh, 620px);
  min-height: 320px;
}

.planner-stage.is-street-drive .planner-map-shell #planner-map {
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--line, #c5d0da);
}

.street-drive-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: min(58vh, 620px);
  min-height: 320px;
  border: none;
  border-radius: 0;
  background: #0b2c44;
  overflow: hidden;
}

.street-drive-panel[hidden] {
  display: none !important;
}

.street-drive-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.street-drive-bar .btn-icon {
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  flex-shrink: 0;
}

.street-drive-bar .btn-icon.is-on,
.street-drive-bar .btn-icon[aria-pressed='true'] {
  background: var(--sun, #f0c14a);
  border-color: transparent;
  color: #0b2c44;
}

#street-drive-scrub {
  flex: 1;
  min-width: 0;
  accent-color: #f0c14a;
}

.street-drive-km {
  flex-shrink: 0;
  min-width: 3.6rem;
  text-align: right;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.street-drive-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #111;
}

#street-drive-frame,
.street-drive-pano {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #1a1a1a;
}

.street-drive-pano {
  min-height: 100%;
}

.street-drive-pano.is-active + #street-drive-frame,
#street-drive-frame.is-hidden {
  display: none;
}

.street-drive-pano:not(.is-active) {
  display: none;
}

.street-drive-fallback {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0b2c44;
}

@media (max-width: 860px) {
  .planner-stage.is-street-drive {
    grid-template-columns: 1fr;
  }

  .planner-stage.is-street-drive .planner-map-shell #planner-map {
    border-right: none;
    border-bottom: 1px solid var(--line, #c5d0da);
  }

  .street-drive-panel {
    height: min(38vh, 320px);
    min-height: 200px;
  }
}

.planner-map-shell #planner-map {
  height: 100% !important;
  min-height: 100% !important;
  width: 100%;
}

.field--icon {
  position: relative;
}

.field--icon .field-icon {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: #0a3d62;
  pointer-events: none;
  opacity: 0.75;
}

.field--icon .field-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.field--icon input {
  padding-left: 2rem;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hint--tight {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.icon-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.btn-icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid #0a3d62;
  color: #0a3d62;
  border-radius: 2px;
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.btn-icon:hover {
  background: rgba(10, 61, 98, 0.08);
}

.btn-icon.is-on,
#btn-draw-toggle.is-on {
  background: rgba(10, 61, 98, 0.16);
}

.btn-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-icon--accent {
  background: var(--sun, #f0c14a);
  border-color: #d4a017;
  color: #0b2c44;
}

.btn-icon--accent:hover {
  background: #ffe066;
}

.btn-icon--wide {
  width: auto;
  min-height: 2.6rem;
  padding: 0 0.9rem;
  gap: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon--wide svg {
  width: 1.15rem;
  height: 1.15rem;
}

.planner-controls .btn-icon.btn-primary {
  background: var(--sun, #f0c14a);
  border-color: transparent;
  color: #0b2c44;
  width: 100%;
}

.layer-toggles--icons {
  gap: 0.35rem;
}

.layer-toggles--icons .layer-toggle {
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border-radius: 2px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: rgba(11, 44, 68, 0.4);
  background: rgba(255, 255, 255, 0.55);
}

.layer-toggles--icons .layer-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.layer-toggles--icons .layer-toggle.is-on {
  color: #0a3d62;
  background: rgba(10, 61, 98, 0.12);
  border-color: #0a3d62;
}

.planner-graph-ico {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.planner-fit-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.planner-controls--compact .date-chips {
  margin: 0.15rem 0 0.35rem;
}

@media (max-width: 860px) {
  .planner-meta-row {
    grid-template-columns: 1fr 1fr;
  }
  .planner-meta-row .field--icon:last-child {
    grid-column: 1 / -1;
  }
}

.planner-controls .btn-planner,
.planner-controls .btn-ghost {
  background: #fff;
  border-color: #0a3d62;
  color: #0a3d62;
}

.planner-controls .btn-planner:hover,
.planner-controls .btn-ghost:hover {
  background: rgba(10, 61, 98, 0.08);
  border-color: #06283f;
  color: #06283f;
}

.planner-controls .btn-planner:disabled,
.planner-controls .btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

#btn-draw-toggle.is-on,
#btn-street-view.is-on {
  border-color: #0a3d62;
  background: rgba(10, 61, 98, 0.14);
  color: #0a3d62;
}

.draw-address-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.draw-address-row input {
  flex: 1;
  min-width: 0;
}

.draw-address-row .btn {
  flex-shrink: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
}

.draw-address-results {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.draw-address-results[hidden] {
  display: none;
}

.draw-address-item {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line, #c5d0da);
  background: #fff;
  display: grid;
  gap: 0.4rem;
}

.draw-address-item-label {
  font-size: 0.88rem;
  line-height: 1.3;
  color: #0b2c44;
}

.draw-address-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.draw-address-item-actions .btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.draw-address-item-actions .btn-add-start,
.draw-address-item-actions .btn-add-end {
  background: #0a3d62;
  border-color: #0a3d62;
  color: #fff;
}

.draw-address-item-actions .btn-add-start:hover,
.draw-address-item-actions .btn-add-end:hover {
  background: #06283f;
  border-color: #06283f;
  color: #fff;
}

.draw-address-item-actions .btn-add-auto {
  background: #fff;
  border-color: #c45c26;
  color: #c45c26;
}

.draw-address-item-actions .btn-add-auto:hover {
  background: rgba(196, 92, 38, 0.1);
}

.surface-legend {
  margin: 0.75rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
}

.surface-legend--map {
  position: absolute;
  left: 0.55rem;
  bottom: 1.85rem;
  z-index: 940;
  margin: 0;
  padding: 0.4rem 0.5rem;
  max-width: min(14rem, calc(100% - 4.5rem));
  max-height: 42%;
  overflow: auto;
  border: 1px solid rgba(11, 44, 68, 0.18);
  border-radius: 8px;
  background: rgba(247, 250, 252, 0.94);
  box-shadow: 0 1px 4px rgba(8, 28, 44, 0.12);
  pointer-events: none;
}

.surface-legend--map[hidden] {
  display: none !important;
}

.surface-legend h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-family: "Barlow Condensed", sans-serif;
}

.surface-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.surface-legend--map ul {
  gap: 0.22rem;
}

.surface-legend li {
  display: grid;
  grid-template-columns: 1rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.88rem;
}

.surface-legend--map li {
  font-size: 0.78rem;
  color: #0b2c44;
  gap: 0.35rem;
}

.surface-legend em {
  font-style: normal;
  opacity: 0.7;
}

.surface-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  display: inline-block;
}

.planner-day-summary {
  margin: 0.85rem 0 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 61, 98, 0.04);
}

.planner-day-summary h2 {
  margin: 0 0 0.55rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a3d62;
}

.planner-day-grid {
  display: grid;
  gap: 0.4rem 0.75rem;
  margin: 0;
}

.planner-day-grid > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.planner-day-grid dt {
  margin: 0;
  font-weight: 600;
  color: rgba(11, 44, 68, 0.65);
}

.planner-day-grid dd {
  margin: 0;
  color: #0b2c44;
}

.planner-map-shell {
  position: relative;
  height: min(58vh, 620px);
  min-height: 320px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.planner-map-layers {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: calc(100% - 3.5rem);
  pointer-events: none;
}

.planner-map-layers .layer-toggles {
  margin: 0;
  pointer-events: auto;
  padding: 0.28rem;
  background: rgba(247, 250, 252, 0.94);
  border: 1px solid rgba(11, 44, 68, 0.18);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(8, 28, 44, 0.12);
}

.planner-map-layers-hint {
  margin: 0;
  padding: 0.2rem 0.4rem;
  background: rgba(247, 250, 252, 0.94);
  border-radius: 6px;
  pointer-events: none;
  color: #0b2c44;
  font-size: 0.75rem;
}

.planner-fit-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 900;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(11, 44, 68, 0.25);
  border-radius: 8px;
  background: rgba(247, 250, 252, 0.95);
  color: #0a3d62;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(8, 28, 44, 0.15);
}

.planner-fit-btn:hover {
  background: #fff;
  border-color: #0a3d62;
}

.planner-graphs {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.35rem;
}

.planner-graph-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
}

.planner-graph-panel[hidden] {
  display: none;
}

.planner-graph-summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: #0a3d62;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.planner-graph-summary::-webkit-details-marker {
  display: none;
}

.planner-graph-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #0a3d62;
  border-bottom: 2px solid #0a3d62;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -0.1rem;
}

.planner-graph-panel[open] > .planner-graph-summary .planner-graph-chevron {
  transform: rotate(45deg);
  margin-top: 0.05rem;
}

.planner-graph-title {
  flex-shrink: 0;
}

.planner-graph-meta {
  margin: 0 0 0 auto;
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  text-align: right;
}

.planner-graph-panel .planner-elev-chart,
.planner-graph-panel .planner-chart {
  padding: 0 0.55rem 0.45rem;
}

.planner-elev-wrap {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.planner-elev-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.planner-elev-head h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  color: #0a3d62;
}

.planner-elev-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-elev-line {
  stroke: #0a3d62;
  stroke-width: 2.2;
}

.planner-map-shell #planner-map {
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 0 !important;
}

.planner-busy {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: rgba(11, 44, 68, 0.28);
  backdrop-filter: blur(1px);
  pointer-events: all;
}

.planner-busy[hidden] {
  display: none !important;
}

.planner-busy__card {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(10, 61, 98, 0.18);
  color: #0b2c44;
  text-align: center;
  min-width: min(16rem, 80vw);
}

.planner-busy__spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid rgba(10, 61, 98, 0.18);
  border-top-color: #0a3d62;
  border-radius: 50%;
  animation: planner-spin 0.75s linear infinite;
}

.planner-busy__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.planner-busy__detail {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(11, 44, 68, 0.72);
}

@keyframes planner-spin {
  to {
    transform: rotate(360deg);
  }
}

body.planner-is-busy #btn-plan {
  opacity: 0.7;
  pointer-events: none;
}

#planner-status.is-busy {
  color: #0a3d62;
  font-weight: 600;
}

.custom-route-row .btn-danger-ghost {
  color: #8b2e2e;
  border-color: rgba(139, 46, 46, 0.35);
}

.custom-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.planner-meta {
  margin: 0.5rem 0 0.75rem;
}

.planner-meta p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.planner-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(11, 44, 68, 0.7);
  margin-bottom: 0.75rem;
}

.planner-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.planner-legend-wx,
.planner-legend-fuel {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
}

.planner-legend-wx {
  background: linear-gradient(135deg, #f5b942, #3a7ebd);
}

.planner-legend-fuel {
  background: #2f7a3e;
}

.planner-legend-works {
  background: #c47a12;
}

.planner-legend-closure {
  background: #b42318;
}

.date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.date-chip {
  border: 1px solid var(--line, #c5d0da);
  background: rgba(255, 255, 255, 0.75);
  color: #0b2c44;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.date-chip.is-active,
.date-chip:hover {
  border-color: #0a3d62;
  background: rgba(10, 61, 98, 0.1);
}

.layer-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.85rem;
}

.layer-toggle {
  border: 1px solid var(--line, #c5d0da);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(11, 44, 68, 0.55);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: line-through;
}

.layer-toggle.is-on {
  color: #0b2c44;
  background: rgba(10, 61, 98, 0.12);
  border-color: #0a3d62;
  text-decoration: none;
}

.works-marker,
.closure-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.works-marker {
  border: 2px solid #c47a12;
}

.closure-marker {
  border: 2px solid #b42318;
}

.hazard-div-icon {
  background: transparent !important;
  border: none !important;
}

.planner-map-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

#planner-map {
  min-height: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #dfe8ef;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
}

.planner-chart-wrap {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.planner-chart-wrap.planner-graph-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.planner-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-bg {
  fill: rgba(10, 61, 98, 0.04);
}

.chart-temp {
  stroke: #c45c26;
  stroke-width: 2.5;
}

.chart-wind {
  stroke: #1e6b8a;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.chart-rain {
  fill: rgba(58, 126, 189, 0.35);
}

.chart-axis {
  font-size: 10px;
  fill: rgba(11, 44, 68, 0.65);
  font-family: Barlow, sans-serif;
}

.chart-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: rgba(11, 44, 68, 0.75);
}

.chart-legend .swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.25rem;
  margin-right: 0.3rem;
  vertical-align: middle;
  border-radius: 1px;
}

.chart-legend .swatch.temp {
  background: #3a7ebd;
}

.chart-legend .swatch.feel {
  background: #c45c26;
}

.chart-legend .swatch.rain {
  background: #3a7ebd;
  height: 0.25rem;
}

.chart-legend .swatch.int {
  background: #c45c26;
}

.chart-legend .swatch.cloud {
  background: #8a9aab;
  height: 0.55rem;
}

.chart-temp-line {
  stroke: #3a7ebd;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-feel-line {
  stroke: #c45c26;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-prob-line {
  stroke: #3a7ebd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-int-line {
  stroke: #c45c26;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-grid {
  stroke: rgba(11, 44, 68, 0.08);
  stroke-width: 1;
}

.wx-panel {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.wx-panel-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display), 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b2c44;
}

.wind-div-icon {
  background: transparent !important;
  border: none !important;
}

.wind-arrow-marker {
  position: relative;
  width: 40px;
  height: 48px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.wind-arrow-svg {
  width: 22px;
  height: 36px;
}

.wind-arrow-spd {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: Barlow, sans-serif;
  color: #fff;
  text-shadow: 0 0 2px #000, 0 1px 2px #000;
  line-height: 1;
  pointer-events: none;
}

.wx-div-icon,
.fuel-div-icon {
  background: transparent !important;
  border: none !important;
}

.wx-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.wx-marker svg {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 2px;
}

.wx-temp {
  margin-top: -2px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: Barlow, sans-serif;
  color: #0b2c44;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 0.25rem;
  border-radius: 3px;
  line-height: 1.2;
}

.wx-wind-row {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  margin-top: 1px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 0 0.2rem;
  border: 1px solid rgba(30, 107, 138, 0.35);
}

.wx-wind-spd {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: Barlow, sans-serif;
  color: #1e6b8a;
}

.wx-wind {
  display: inline-block;
  font-weight: 700;
  color: #1e6b8a;
  line-height: 1;
}

.wx-wind-hint {
  font-size: 0.75rem;
  opacity: 0.75;
}

.chart-hint {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: rgba(11, 44, 68, 0.7);
}

.planner-chart-svg {
  cursor: crosshair;
}

.chart-sync-line {
  stroke: #c45c26;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  pointer-events: none;
}

.chart-sync-tip {
  font-size: 11px;
  font-family: Barlow, sans-serif;
  fill: #0b2c44;
  font-weight: 600;
  pointer-events: none;
}

.chart-hit {
  cursor: crosshair;
}

.chart-wind-arrow {
  pointer-events: none;
}

.fuel-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: #fff;
  border: 2px solid #2f7a3e;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
}

.fuel-marker.is-24h {
  border-color: #b45309;
  background: #fff8ef;
}

.fuel-24 {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.15rem;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  font-family: Barlow, sans-serif;
}

.cafe-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: #fff;
  border: 2px solid #6b3e26;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.night-shop-marker {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #0a3d62;
  border: 2px solid #ffcc33;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.night-shop-glyph {
  font-size: 0.85rem;
  line-height: 1;
}

.night-shop-24 {
  position: absolute;
  right: -6px;
  bottom: -5px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.15rem;
  border-radius: 999px;
  background: #ffcc33;
  color: #0a3d62;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  font-family: Barlow, sans-serif;
}

.planner-popup-night-shop {
  display: grid;
  gap: 0.35rem;
}

.popup-extras {
  font-size: 0.85rem;
  color: rgba(11, 44, 68, 0.78);
}

.planner-popup {
  font-family: Barlow, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #0b2c44;
  min-width: 11rem;
  max-width: min(78vw, 18rem);
}

.planner-popup-cafe {
  display: grid;
  gap: 0.4rem;
}

.popup-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.popup-sub {
  font-size: 0.9rem;
  color: rgba(11, 44, 68, 0.72);
}

.popup-meta {
  font-size: 0.88rem;
  color: rgba(11, 44, 68, 0.65);
}

.popup-photo {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.popup-quality {
  font-size: 0.88rem;
  color: #6b3e26;
  font-weight: 600;
}

.popup-row {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin-top: 0.1rem;
}

.popup-label {
  flex: 0 0 3.6rem;
  color: rgba(11, 44, 68, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 0.15rem;
}

.popup-value,
.popup-hours {
  flex: 1;
  font-size: 0.95rem;
  word-break: break-word;
}

.popup-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.popup-badge-24 {
  background: #b45309;
  color: #fff;
}

.popup-muted {
  color: rgba(11, 44, 68, 0.55);
  font-size: 0.9rem;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.popup-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(10, 61, 98, 0.1);
  color: #0a3d62;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.leaflet-container .planner-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.leaflet-container .planner-leaflet-popup .leaflet-popup-content {
  margin: 0.75rem 0.85rem;
  min-width: 11rem;
}

@media (max-width: 640px) {
  .planner-popup {
    font-size: 1.02rem;
    max-width: min(86vw, 17.5rem);
  }

  .popup-title {
    font-size: 1.12rem;
  }

  .popup-label {
    flex-basis: 3.8rem;
    font-size: 0.7rem;
  }

  .popup-actions a {
    min-height: 2.6rem;
    font-size: 0.95rem;
  }

  .leaflet-container .planner-leaflet-popup .leaflet-popup-content {
    margin: 0.85rem 0.9rem;
  }

  .layer-toggle {
    min-height: 2.4rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.88rem;
  }
}

.fuel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.fuel-list li button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.15rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-bottom: 1px solid rgba(11, 44, 68, 0.08);
}

.fuel-list li button span {
  font-size: 0.8rem;
  color: rgba(11, 44, 68, 0.65);
}

.fuel-list li button:hover {
  background: rgba(10, 61, 98, 0.05);
}

@media (max-width: 860px) {
  .planner-page .planner-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .planner-page .planner-controls {
    max-height: none;
    overflow: visible;
  }

  .planner-page .planner-map-col {
    max-height: none;
  }

  #planner-map {
    min-height: 42vh;
  }

  .planner-controls .fuel-list {
    max-height: 140px;
  }

  .planner-map-layers .layer-toggles--icons .layer-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }
}


/* QR / Share dialog */
body.qr-share-open {
  overflow: hidden;
}

.qr-share-dialog {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: end center;
}

.qr-share-dialog[hidden] {
  display: none !important;
}

.qr-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 44, 0.45);
}

.qr-share-sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0;
  padding: 1.25rem 1.15rem 1.4rem;
  border-radius: 18px 18px 0 0;
  background: #f7fafc;
  box-shadow: 0 -12px 40px rgba(8, 28, 44, 0.22);
  text-align: center;
}

@media (min-width: 640px) {
  .qr-share-dialog {
    place-items: center;
  }
  .qr-share-sheet {
    border-radius: 16px;
    margin: 1rem;
  }
}

.qr-share-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(11, 44, 68, 0.55);
}

.qr-share-sheet h2 {
  margin: 0 0 0.35rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
}

.qr-share-code {
  margin: 0.35rem 0 0.65rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0a3d62;
}

#qr-share-canvas {
  display: block;
  margin: 0.5rem auto;
  border-radius: 8px;
  background: #fff;
}

.qr-share-url {
  word-break: break-all;
  font-size: 0.82rem;
  color: rgba(11, 44, 68, 0.7);
  margin: 0.4rem 0 0.85rem;
}

.qr-share-actions {
  justify-content: center;
}

.share-panel h2,
.friends-panel h2,
.session-join-box h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.15rem;
}

.session-code-field input {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
  max-width: 10rem;
}

.share-link-row {
  align-items: flex-start;
}

.share-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.friends-live-map {
  height: 220px;
  margin-top: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.app-home-join {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
}

.app-home-join label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.app-home-join-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.app-home-join-row input {
  flex: 1 1 8rem;
  min-width: 0;
}

.pwa-install-hint {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  opacity: 0.85;
}
