/* Beckon Gym - coming-soon placeholder, shared base.
   build.mjs --placeholder concatenates this file with ONE direction file
   (a.css, b.css or c.css) into assets/css/coming-soon.css.

   The dark token set is the full site's "Midnight Blue", copied from
   src/assets/css/style.css - same names, same values, same measurements.
   The light set exists only here (the full site is dark-only) and is MEASURED:
   build.mjs --placeholder-preview reads both sets from this file and prints
   every pair on the comparison page. Nothing below 4.5:1 for text. */

:root {
  color-scheme: dark light;

  --bg: #070c16;
  --bg-elev: #0b1220;
  --surface: #101a2e;
  --surface-2: #16233c;

  --blue: #5b8cff;
  --blue-bright: #9dc4ff;
  --blue-deep: #4a7ae8;
  --blue-glow: rgba(91, 140, 255, 0.28);
  --line: rgba(91, 140, 255, 0.16);
  --line-strong: rgba(91, 140, 255, 0.34);

  --ink: #e8eef9;
  --muted: #9db0cd;
  --on-blue: #06101f;

  /* the wordmark: one gradient over both words, measured at its darkest stop */
  --wm-top: #cfe0ff;
  --wm-mid: #8fb8ff;
  --wm-end: #5b8cff;

  --access-hover: #d0a8ec;
  --billing-hover: #f4cc6e;

  /* the button: a gradient fill, so BOTH ends are measured against its label */
  --btn-from: #9dc4ff;
  --btn-to: #4a7ae8;
  --btn-ink: #06101f;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1200px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f6fc;
    --bg-elev: #eaf0fa;
    --surface: #ffffff;
    --surface-2: #e4ebf7;

    --blue: #2a56c4;
    --blue-bright: #3a64d6;
    --blue-deep: #1e3f94;
    --blue-glow: rgba(42, 86, 196, 0.22);
    --line: rgba(42, 86, 196, 0.16);
    --line-strong: rgba(42, 86, 196, 0.32);

    --ink: #0b1424;
    --muted: #4a6080;
    --on-blue: #ffffff;

    /* on a light ground the gradient runs the other way round in weight:
       its LIGHTEST stop is the one that has to clear 4.5:1 */
    --wm-top: #3a64d6;
    --wm-mid: #2a56c4;
    --wm-end: #1e3f94;

    --access-hover: #7a3fa0;
    --billing-hover: #8a5a10;

    --btn-from: #3a64d6;
    --btn-to: #1e3f94;
    --btn-ink: #ffffff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: 0;
  top: -200px;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip:focus {
  top: 0;
}

.ph-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.ph-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* --- header: three brands, own first (beckongym-master/CLAUDE.md) ---------- */
.ph-head {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.ph-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-width: 0;
}

.brand svg {
  flex: none;
}

/* One gradient over BOTH words. `color` comes last: if the clip does not take,
   the name is painted in the end stop instead of in nothing. */
.wordmark {
  display: inline-flex;
  gap: 0.28em;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--wm-top), var(--wm-mid) 52%, var(--wm-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--wm-end);
}

/* ---- "Alle Produkte": nav item + full-width panel (no JavaScript) ----------
   Anchored to .ph-head (position: relative), NOT to the <details>. */
.ph-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.prod-det-wide {
  position: static;
}

.prod-det-wide > summary {
  list-style: none;
  cursor: pointer;
}

.prod-det-wide > summary::-webkit-details-marker {
  display: none;
}

.prodmenu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.prod-det-wide > summary:hover,
.prod-det-wide[open] > summary {
  color: var(--ink);
}

.prod-det-wide > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.pp-chev {
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.prod-det-wide[open] > summary .pp-chev {
  transform: rotate(180deg);
}

/* Fully opaque: translucent, the headline shows through the panel. */
.pp-wide {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 1.3rem 0 1.5rem;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-elev);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.pp-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.pp-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pp-col:hover,
.pp-col:focus-visible {
  background: var(--surface);
  text-decoration: none;
}

.pp-col.is-current {
  border-color: var(--blue);
  background: var(--surface);
}

.pp-mark {
  display: inline-flex;
  flex: 0 0 auto;
}

.pp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.pp-col.is-current .pp-name {
  color: var(--blue);
}

.pp-col--access:hover .pp-name,
.pp-col--access:focus-visible .pp-name {
  color: var(--access-hover);
}

.pp-col--billing:hover .pp-name,
.pp-col--billing:focus-visible .pp-name {
  color: var(--billing-hover);
}

.pp-satz {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.pp-go,
.pp-hier {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* "Du bist hier" is a statement, not an invitation - so it stays muted. */
.pp-hier {
  color: var(--muted);
}

.ph-lang {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.ph-lang a {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  min-height: 2rem;
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}

.ph-lang a + a {
  border-left: 1px solid var(--line-strong);
}

.ph-lang a[aria-current] {
  background: var(--surface-2);
  color: var(--ink);
}

.ph-lang a:not([aria-current]):hover {
  color: var(--ink);
}

/* --- the big wordmark ----------------------------------------------------- */
/* Same gradient as the header's, at display size. The padding keeps the "y"
   descender inside the box: background-clip:text only paints glyph parts that
   lie inside the element, so a tight line-height alone would cut the tail off. */
.wm-big {
  display: block;
  padding-block: 0.04em 0.14em;
  margin-block: -0.04em -0.14em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--wm-top), var(--wm-mid) 52%, var(--wm-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--wm-end);
}

/* --- the call to action ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: var(--btn-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px -12px var(--blue-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -14px var(--blue-glow);
}

.btn svg {
  flex: none;
}

.ph-mail {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
}

.ph-mail a {
  color: var(--blue);
  text-underline-offset: 3px;
}

/* --- footer ---------------------------------------------------------------- */
.ph-foot {
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.ph-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}

.ph-foot p {
  margin: 0;
}

.ph-foot nav {
  display: flex;
  gap: 1.25rem;
}

.ph-foot a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.ph-foot a:hover {
  color: var(--ink);
}

/* --- legal pages ----------------------------------------------------------- */
.ph-legal .ph-wrap {
  max-width: 780px;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
}

.ph-legal h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ph-legal h2 {
  margin: 2rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ph-legal p,
.ph-legal li {
  color: var(--ink);
  overflow-wrap: break-word;
}

.ph-legal .legal-intro {
  color: var(--muted);
}

.ph-legal a {
  color: var(--blue);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.ph-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

/* The panel's three columns become one stack on a phone. */
@media (max-width: 720px) {
  .pp-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .pp-wide {
    max-height: calc(100svh - 4.5rem);
    overflow-y: auto;
  }
}

/* MEASURED: mark 34 + name 100 + "Alle Produkte" 110 + language 79 + gaps + 2 x
   16px gutter come to ~390px, so a 320-380px bar cannot hold the name beside
   the nav item. The mark stays (and carries the aria-label), the big headline
   below says the name anyway. */
@media (max-width: 399px) {
  .brand .wordmark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .btn:hover {
    transform: none;
  }
}

/* Direction B - "Puls". Energetic: a heart-rate trace runs under the name, the
   way it runs across the display of every treadmill on a gym floor. ONE moving
   thing (the bright run along the trace) plus a status dot; nothing else moves.
   prefers-reduced-motion: the run is removed and the trace stands still. */

.dir-b {
  position: relative;
  overflow-x: clip;
}

.b-stage {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 5.5vh, 3.75rem) clamp(2.5rem, 7vh, 4.5rem);
  text-align: center;
}

/* the display grid of a cardio machine, fading out towards the edges */
.b-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center center;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 46%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 46%, #000 25%, transparent 75%);
  pointer-events: none;
}

.b-stage > * {
  position: relative;
}

.b-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 1.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue-glow);
  animation: b-ping 1.8s ease-out infinite;
}

.b-mark {
  margin: 0;
  font-size: clamp(2.75rem, 12.5vw, 9.5rem);
}

.b-trace {
  position: relative;
  height: clamp(92px, 10vw, 132px);
  margin-block: clamp(-1rem, -1.5vw, -0.25rem) clamp(0.9rem, 2.2vw, 1.6rem);
}

.b-trace svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.b-trace path {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.b-trace__base path {
  stroke: var(--blue);
  opacity: 0.3;
}

/* The run: the same trace, bright, seen through a window that sweeps left to
   right in SCREEN space. A dash along the path would travel in path space, and
   on a phone - where the trace is cropped to its middle - it would be off
   screen two thirds of the time. */
.b-trace__run {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 55%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 55%, #000 93%, transparent 100%);
  -webkit-mask-size: 32% 100%;
  mask-size: 32% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: b-sweep 3.4s linear infinite;
}

.b-trace__run path {
  stroke: var(--blue-bright);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 5px var(--blue));
}

.b-title {
  margin: 0 auto 0.9rem;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.b-title span {
  display: block;
}

.b-title em {
  font-style: normal;
  color: var(--blue);
}

.b-sub {
  margin: 0 auto 1.6rem;
  max-width: 54ch;
  color: var(--muted);
}

.b-note {
  margin: 1.1rem auto 0;
  max-width: 46ch;
  font-size: 0.92rem;
  color: var(--muted);
}

@keyframes b-sweep {
  from {
    -webkit-mask-position: -47% 0;
    mask-position: -47% 0;
  }
  to {
    -webkit-mask-position: 147% 0;
    mask-position: 147% 0;
  }
}

@keyframes b-ping {
  0% {
    box-shadow: 0 0 0 0 var(--blue-glow);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b-trace__run {
    display: none;
  }

  .b-trace__base path {
    opacity: 0.7;
  }

  .b-dot {
    animation: none;
  }
}
