/* EdelGPS Landing Pages – gemeinsames Stylesheet (gps.edelbyte.ch, gps-moto.edelbyte.ch) */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --night: #0b0e1a;
  --graphite: #141a2e;
  --graphite-2: #1c2440;
  --blue: #1f5bff;
  --cyan: #00bedb;
  --smoke: #eef1f7;
  --muted: #a3abc8;
  --dusk: #ff8a3d;
  --route: linear-gradient(180deg, #00d4f0 0%, #2f6bff 55%, #4f86ff 100%);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1180px;
  --display: "Bricolage", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  background: var(--night);
  color: var(--smoke);
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Kopfzeile ---------- */

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding-block: 1.25rem;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 6px 22px rgb(0 0 0 / 0.45);
}

.brand strong {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem 0.15rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #0844a8, var(--blue), var(--cyan));
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  vertical-align: 0.35em;
}

.sister {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.sister:hover {
  color: var(--smoke);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(11 14 26 / 0.55) 0%, rgb(11 14 26 / 0) 28%),
    linear-gradient(0deg, var(--night) 0%, rgb(11 14 26 / 0.85) 28%, rgb(11 14 26 / 0) 62%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 2.5rem;
  padding-block: 9rem 3.5rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 11ch;
  text-wrap: balance;
}

.hero p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  max-width: 34ch;
  margin: 1.25rem 0 2rem;
  color: #d6dbee;
}

.hero .phone {
  justify-self: center;
  width: min(62vw, 300px);
  margin-bottom: -1.5rem;
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero .phone {
    width: 320px;
    margin-bottom: -6rem;
    rotate: 4deg;
  }
}

/* ---------- Knöpfe ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #0844a8, var(--blue) 50%, var(--cyan));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 12px 34px rgb(31 91 255 / 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgb(31 91 255 / 0.6);
}

.platforms {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Phone-Mockups ---------- */

.phone {
  filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.6));
}

/* ---------- Routen-Strecke mit Stopps ---------- */

.journey {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem) 4rem;
}

.journey svg.route {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.route path {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgb(31 91 255 / 0.65));
}

.route path.base {
  stroke: #1c2440;
  stroke-width: 18;
  filter: none;
}

.stop {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-block: clamp(4rem, 9vw, 8rem);
  padding-left: 2.6rem;
}

.stop::before {
  /* Haltepunkt auf der Route */
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--night);
  border: 5px solid var(--cyan);
  box-shadow: 0 0 0 6px rgb(0 190 219 / 0.15);
}

.stop h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.stop p {
  margin: 0;
  max-width: 36ch;
  font-size: 1.15rem;
  color: #c9cfe4;
}

.stop .media img {
  border-radius: 28px;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}

.stop .media.phone-media {
  justify-self: center;
}

.stop .media.phone-media img {
  width: min(70vw, 300px);
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 860px) {
  .stop {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    padding-left: 0;
  }

  .stop:nth-of-type(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .stop:nth-of-type(even) .text {
    order: 2;
  }

  .stop::before {
    left: calc(50% - 11px);
    top: -3.5rem;
  }

  .stop .text {
    padding-inline: 1rem;
  }
}

/* ---------- Zwei Karten nebeneinander ---------- */

.duo {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.duo img {
  width: min(42vw, 260px);
}

.duo img:last-child {
  margin-top: 3rem;
}

/* ---------- Kleinigkeiten ---------- */

.extras {
  padding-block: 3rem 6rem;
}

.extras h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.extras ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.extras li {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--graphite);
  border: 1px solid rgb(255 255 255 / 0.07);
  font-weight: 600;
}

/* ---------- Schwester-App ---------- */

.crossover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 34px;
  margin-block: 2rem 6rem;
  min-height: 360px;
  display: grid;
  align-items: end;
  text-decoration: none;
}

.crossover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.crossover:hover img {
  transform: scale(1.03);
}

.crossover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(11 14 26 / 0.92), rgb(11 14 26 / 0.1) 70%);
}

.crossover div {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.crossover strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.crossover span {
  display: block;
  color: #d6dbee;
  margin-top: 0.6rem;
  font-size: 1.1rem;
}

/* ---------- Abschluss ---------- */

.finale {
  text-align: center;
  padding-block: 5rem 6rem;
}

.finale h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 auto 2rem;
  max-width: 14ch;
  text-wrap: balance;
}

.finale .actions {
  justify-content: center;
}

footer {
  border-top: 1px solid rgb(255 255 255 / 0.07);
  padding-block: 2.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

footer img {
  height: 34px;
  width: auto;
  opacity: 0.85;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--smoke);
}

footer small {
  flex-basis: 100%;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ---------- Moto: Dämmerungs-Akzent ---------- */

.moto .stop::before {
  border-color: var(--dusk);
  box-shadow: 0 0 0 6px rgb(255 138 61 / 0.15);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .crossover img {
    transition: none;
  }
}

/* Telefon-Paare in einem Stopp nicht wie Fotos beschneiden */
.stop .media.duo img {
  width: min(40vw, 250px);
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

/* Marke einzeilig halten */
.brand strong {
  white-space: nowrap;
}

/* Handy: Text steht oben auf dem Foto – dort stärker abdunkeln */
@media (max-width: 859px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgb(11 14 26 / 0.78) 0%, rgb(11 14 26 / 0.62) 45%, rgb(11 14 26 / 0.2) 70%, var(--night) 100%);
  }

  .hero p,
  .platforms {
    text-shadow: 0 1px 12px rgb(11 14 26 / 0.8);
  }

  .sister {
    display: none;
  }
}

.brand .badge {
  display: inline-block;
  margin-top: 0;
  color: #fff;
  font-size: 0.62rem;
}

/* ---------- Legende: alle Funktionen wie die Zeichenerklärung einer Karte ---------- */

.legend {
  padding-block: 4rem 5rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  background:
    radial-gradient(1200px 400px at 85% 0%, rgb(31 91 255 / 0.10), transparent 70%),
    var(--night);
}

.legend > .wrap > h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 0.6rem;
}

.legend > .wrap > p {
  color: var(--muted);
  margin: 0 0 3rem;
  max-width: 48ch;
}

.legend-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 3rem 3.5rem;
}

.legend h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  padding-top: 1rem;
  position: relative;
}

.legend h3::before {
  /* kurzer Streckenabschnitt als Gruppenmarke */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00d4f0, #2f6bff);
}

.moto .legend h3::before {
  background: linear-gradient(90deg, #2f6bff, var(--dusk));
}

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

.legend li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.legend li svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 12px;
  color: var(--cyan);
  background: rgb(0 190 219 / 0.10);
  border: 1px solid rgb(0 190 219 / 0.18);
}

.moto .legend li svg {
  color: #ffb07a;
  background: rgb(255 138 61 / 0.10);
  border-color: rgb(255 138 61 / 0.2);
}

.legend li strong {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.legend li span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.coverage {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
}

.coverage strong {
  color: var(--smoke);
}

.legend .tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.18);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

/* Linien-Icons aus dem Sprite: Strich-Eigenschaften hier setzen (werden über <use> vererbt) */
.legend li svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend > .wrap > p.coverage {
  display: block;
  max-width: 70ch;
  margin: 3.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.07);
}

.legend .tag {
  font-style: normal;
}
