.am-landing-shell {
  min-height: 100vh;
  background: var(--ac-bg);
  color: var(--ac-text-main);
  display: block;
  overflow-x: hidden;
}

.am-container {
  width: min(1120px, calc(100vw - 32px));
  margin-inline: auto;
}

.am-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem 0 1.953rem;   /* links +25% Abstand (Logo+Text) */
  background: color-mix(in oklch, var(--ac-bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--ac-border) 78%, transparent);
  backdrop-filter: blur(14px);
}

.am-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
}

.am-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ac-brand-600), #2563eb);
}

.am-brand__name {
  font-size: var(--ac-text-xl);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.am-brand__name span {
  color: var(--ac-text-muted);
  font-weight: 500;
}

/* „Motion" tiefer setzen — bündig zur Unterkante des Logos (statt zentriert). */
.am-brand__suffix {
  align-self: flex-end;
}

.am-topnav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;   /* Menü nach rechts schieben (weg vom Logo) */
  color: var(--ac-text-dim);
  font-size: var(--ac-text-sm);
  font-weight: 600;
}

.am-topnav a {
  padding: 0.35rem 0;
}

.am-topnav a:hover {
  color: var(--ac-text-main);
}

.am-topnav a.is-active {
  color: var(--ac-text-main);
}

.am-topbar__actions {
  margin-left: 1.5rem;   /* Abstand zur (jetzt rechten) Nav; Push übernimmt .am-topnav */
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Sprachwechsel als Globus-Dropdown (<details>/<summary>, kein JS). */
.am-lang {
  position: relative;
}

.am-lang__toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ac-text-dim);
  background: var(--ac-surface-raised);
  border: 1px solid var(--ac-border);
  list-style: none;          /* Standard-Dreieck weg */
}

.am-lang__toggle::-webkit-details-marker { display: none; }   /* Safari/Chrome */
.am-lang__toggle::marker { content: ""; }

.am-lang__toggle:hover,
.am-lang[open] .am-lang__toggle {
  color: var(--ac-text-main);
  background: var(--ac-surface-hover);
}

.am-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  padding: 4px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ac-surface-raised);
  border: 1px solid var(--ac-border);
  border-radius: 10px;
  box-shadow: var(--ac-shadow-lg);
}

.am-lang__menu a {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: var(--ac-text-sm);
  font-weight: 600;
  color: var(--ac-text-muted);
  white-space: nowrap;
}

.am-lang__menu a:hover {
  background: var(--ac-surface-hover);
  color: var(--ac-text-main);
}

.am-lang__menu a.is-active {
  background: var(--ac-bg);
  color: var(--ac-text-main);
}

.am-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ac-text-dim);
  background: var(--ac-surface-raised);
  border: 1px solid var(--ac-border);
}

.am-icon-btn:hover {
  color: var(--ac-text-main);
  background: var(--ac-surface-hover);
}

.am-icon-btn .icon-dark { display: none; }
:root.dark .am-icon-btn .icon-light { display: none; }
:root.dark .am-icon-btn .icon-dark { display: inline-block; }

/* Kompakter Hero für Unterseiten (Hilfe, Impressum, …) */
.am-hero--compact {
  min-height: 340px;
  align-items: center;
}
.am-hero--compact .am-hero__content {
  width: 100%;
  text-align: left;
  padding: 120px clamp(1.25rem, 5vw, 3rem) 56px;
  box-sizing: border-box;
}
.am-hero--compact .am-hero__content h1 {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: oklch(98.2% 0.001 286);
}
.am-hero--compact .am-hero__content p {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: oklch(71% 0.004 286);
  margin: 0;
  max-width: 520px;
  line-height: 1.65;
}

.am-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.am-hero__media {
  position: absolute;
  inset: 0;
  background-image: url("/static/img/hero.webp");
  background-size: cover;
  background-position: center;
}

@media (max-width: 800px) {
  .am-hero__media {
    background-image: url("/static/img/hero-mobile.webp");
  }
}

.am-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.76), rgba(9, 9, 11, 0.28) 54%, rgba(9, 9, 11, 0.16)),
    linear-gradient(0deg, var(--ac-bg), rgba(9, 9, 11, 0) 35%);
}

.am-hero__content {
  position: relative;
  z-index: 1;
  padding: 9rem 0 6rem;
}

.am-eyebrow {
  color: var(--ac-brand-300);
  font-size: var(--ac-text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.am-hero h1 {
  max-width: 780px;
  color: #fff;
  font-size: var(--ac-text-5xl);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}

.am-copy {
  color: var(--ac-text-dim);
  font-size: var(--ac-text-base);
  line-height: var(--ac-leading-relaxed);
}

.am-copy--hero {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--ac-text-lg);
}

.am-copy p + p {
  margin-top: 0.75rem;
}

.am-copy ul {
  display: grid;
  gap: 0.65rem;
}

.am-copy li {
  position: relative;
  padding-left: 1.35rem;
}

.am-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ac-brand-500);
}

.am-copy strong {
  color: var(--ac-text-main);
}

.am-search {
  margin-top: 2rem;
  width: min(680px, 100%);
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}

.am-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.am-search .material-symbols-outlined {
  margin-left: 0.65rem;
  color: var(--ac-brand-600);
}

.am-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ac-zinc-900);
  background: transparent;
  font-size: var(--ac-text-base);
}

.am-search button {
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ac-brand-600), #2563eb);
  font-size: var(--ac-text-sm);
  font-weight: 800;
  white-space: nowrap;
}

.am-search button:hover {
  filter: brightness(1.04);
}

.am-section {
  padding: 5rem 0;
}

.am-section--overview {
  padding-top: 0;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.am-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.am-panel {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid var(--ac-border);
  background: var(--ac-surface);
  box-shadow: var(--ac-shadow-card);
  padding: 1.25rem;
}

.am-panel__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.am-panel__header h2,
.am-panel h2 {
  font-size: var(--ac-text-xl);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.am-panel__kicker {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--ac-text-muted);
  font-size: var(--ac-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.am-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.am-week-grid div {
  padding: 0.85rem;
  border-radius: 8px;
  background: var(--ac-surface-raised);
}

.am-week-grid span,
.am-progress-row,
.am-activity-meta {
  color: var(--ac-text-muted);
  font-size: var(--ac-text-xs);
  font-weight: 700;
}

.am-week-grid strong {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--ac-text-2xl);
  line-height: 1.1;
  color: var(--ac-text-main);
}

.am-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 0.4rem;
}

.am-progress {
  height: 8px;
  border-radius: 8px;
  background: var(--ac-surface-raised);
  overflow: hidden;
}

.am-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ac-brand-500), #3b82f6);
}

.am-panel--activity {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--ac-surface) 84%, transparent), var(--ac-surface)),
    url("../img/am-activity-bg.jpg") center/cover;   /* self-hosted (kein CDN/IP-Leak) */
}

.am-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.am-activity-meta span {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: var(--ac-text-main);
  background: color-mix(in oklch, var(--ac-bg) 74%, transparent);
}

.am-panel--coach {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--ac-brand-500) 16%, var(--ac-surface)), var(--ac-surface));
}

.am-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ac-brand-400);
  font-size: var(--ac-text-sm);
  font-weight: 800;
  margin-top: auto;
}

.am-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
}

.am-split h2 {
  font-size: var(--ac-text-4xl);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.am-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.am-feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  color: var(--ac-text-dim);
  border: 1px solid var(--ac-border);
  background: var(--ac-surface);
  font-size: var(--ac-text-sm);
  font-weight: 700;
}

/* ── Route coverage note ──────────────────────────────────────── */
.am-coverage-note {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--ac-brand-400);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ac-text-muted);
}

.am-route-preview {
  position: relative;
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ac-border);
  background: var(--ac-surface-raised);
}

.am-route-preview__map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 24px, color-mix(in oklch, var(--ac-border) 65%, transparent) 25px, transparent 26px),
    linear-gradient(0deg, transparent 24px, color-mix(in oklch, var(--ac-border) 65%, transparent) 25px, transparent 26px),
    color-mix(in oklch, var(--ac-surface-raised) 90%, var(--ac-brand-500));
  background-size: 52px 52px;
}

.am-route-preview svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.am-route-preview path {
  fill: none;
  stroke: #2563eb;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(37,99,235,0.22));
}

.am-route-preview circle {
  fill: var(--ac-brand-500);
  stroke: #fff;
  stroke-width: 5;
}

.am-route-preview__stats {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.am-route-preview__stats span {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--ac-text-main);
  background: color-mix(in oklch, var(--ac-bg) 88%, transparent);
  border: 1px solid var(--ac-border);
  font-size: var(--ac-text-sm);
  font-weight: 800;
}

.am-section--data {
  background: var(--ac-surface-raised);
}

.am-split--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.am-data-visual {
  min-height: 320px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--ac-border);
  background: var(--ac-bg);
}

.am-data-visual div {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #3b82f6, var(--ac-brand-500));
}

.am-data-visual div:nth-child(1) { height: 42%; background: linear-gradient(180deg, #f59e0b, #ef4444); }
.am-data-visual div:nth-child(2) { height: 72%; }
.am-data-visual div:nth-child(3) { height: 54%; background: linear-gradient(180deg, #22c55e, var(--ac-brand-500)); }
.am-data-visual div:nth-child(4) { height: 88%; }
.am-data-visual div:nth-child(5) { height: 61%; background: linear-gradient(180deg, #a855f7, #3b82f6); }
.am-data-visual div:nth-child(6) { height: 76%; background: linear-gradient(180deg, #f59e0b, var(--ac-brand-500)); }

.am-copy--list {
  margin-top: 1.25rem;
}

.am-section--enter {
  padding: 3.5rem 0;
}

.am-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--ac-border);
  background: var(--ac-surface);
}

.am-enter .am-copy {
  max-width: 680px;
}

.am-enter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .am-topnav {
    display: none;
  }

  .am-hero {
    min-height: 680px;
  }

  .am-overview,
  .am-split,
  .am-split--reverse {
    grid-template-columns: 1fr;
  }

  .am-section {
    padding: 4rem 0;
  }

  .am-section--overview {
    margin-top: -2rem;
    padding-top: 0;
  }

  .am-enter {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .am-container {
    width: min(100vw - 24px, 1120px);
  }

  .am-topbar {
    height: auto;
    min-height: 64px;
    padding: 0.7rem 0.75rem;
  }

  .am-brand__mark {
    width: 32px;
    height: 32px;
  }

  .am-brand__name {
    font-size: var(--ac-text-base);
  }

  .am-open-app {
    display: none;
  }

  .am-hero {
    min-height: 660px;
  }

  .am-hero__content {
    padding: 7rem 0 4rem;
  }

  .am-hero h1 {
    font-size: var(--ac-text-4xl);
    line-height: 1.08;
  }

  .am-copy--hero {
    font-size: var(--ac-text-base);
  }

  .am-search {
    grid-template-columns: auto 1fr;
    padding: 0.55rem;
  }

  .am-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .am-week-grid {
    grid-template-columns: 1fr;
  }

  .am-panel,
  .am-enter {
    padding: 1rem;
  }

  .am-split h2 {
    font-size: var(--ac-text-3xl);
  }

  .am-route-preview {
    min-height: 280px;
  }

  .am-data-visual {
    min-height: 240px;
    gap: 0.5rem;
  }

  .am-enter__actions,
  .am-enter__actions .ac-btn {
    width: 100%;
  }
}
