/* Etamo teaser. Follows the design "Etamo Teaser-Website" and its design system (tokens and et-* parts).
   etamo.js only sets custom properties from the scroll position; everything here reads them. */

/* Archivo (SIL OFL 1.1, see ../assets/fonts/OFL.txt), self-hosted. Own family name, so it never mixes
   with the Expanded-only subset that ../styles.css declares for the landing page title. */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-variable.woff2") format("woff2");
}

/* Scroll state. etamo.js sets each value only on the elements that use it, and nothing inherits, so a frame
   restyles a handful of boxes instead of the whole stage: h hint/title gone, d dimmed, f finale, p whole scroll,
   w/q two slow waves (0 at the start), a part is active, b second half of the long step, y shift, t/e times. */
@property --h { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --d { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --f { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --w { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --q { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --a { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --b { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --y { syntax: "<number>"; inherits: false; initial-value: 32; }
@property --t { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --e { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --now { syntax: "<number>"; inherits: false; initial-value: .12; }
@property --free { syntax: "*"; inherits: false; }
@property --tx { syntax: "*"; inherits: false; }
@property --ty { syntax: "*"; inherits: false; }
@property --rot { syntax: "*"; inherits: false; }

.em-stage {
  --font: "Archivo Variable", "SF Pro Text", -apple-system, system-ui, sans-serif;
  --ground: #000000; --surface: #1c1c1e; --surface-high: #3a3a3c;
  --glass: #ffffff1f; --glass-line: #ffffff2e; --hairline: #38383a;
  --ink: #ffffff; --ink-muted: #98989f; --on-ink: #000000;
  --accent: #0a84ff; --atmosphere: #78abff;
  --status-ok: #30d158; --status-late: #ff453a;
  --guest-brown: #ac8e68; --guest-teal: #40c8e0; --avatar-self: #ff9f0a; --transit-u: #2074c8;

  --fs: 1;                                  /* scale of the floating parts */
  --z: 1;                                   /* floating parts are laid out this much larger and scaled down, so their layers stay sharp */
  --vh: 1vh; --tb: 0px;                     /* tb: height the mobile toolbars take */
  --dx: min(27vw, 360px);
  --dy: min(calc(24 * var(--vh)), 220px);
  --text-top: calc(58 * var(--vh));
}
@supports (height: 1svh) { .em-stage { --vh: 1svh; --tb: calc(100lvh - 100svh); } } /* steady while the mobile toolbars collapse */
@supports (zoom: 1.5) { .em-stage { --z: 1.5; } }

.em-track { height: 920vh; }
.em-stage {
  position: sticky; top: 0; height: 100vh; height: 100lvh; /* constant: 100dvh would relayout while the toolbars move */
  overflow: hidden; overflow: clip;
  background: var(--ground); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}

/* ---- Globe on the horizon: globe.js draws all of it; the CSS sphere and rim only show without WebGL (as layers
   over a moving canvas they would be several screens large) ---- */
.em-globe { position: absolute; left: 0; right: 0; bottom: 0; height: calc(240px + var(--tb)); overflow: hidden; z-index: 0; contain: strict; }
.em-globe-clip { position: absolute; left: 0; right: 0; bottom: 0; height: calc(220px + var(--tb)); overflow: hidden; }
.em-globe.is-gl .em-globe-sphere, .em-globe.is-gl .em-globe-rim { display: none; }
.em-globe-sphere, .em-globe-rim { position: absolute; left: 50%; top: 80px; width: 230%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); }
.em-globe-sphere {
  background: radial-gradient(ellipse 75% 75% at 50% 8%, #1f4569 0%, #12304d 33%, #0a1a2b 66%, #05080f 100%);
  box-shadow: 0 -8px 44px #78abff80;
}
.em-globe-rim { box-shadow: inset 0 0 36px 4px #78abff59, inset 0 0 0 2px #abccff66; }
.em-globe-land { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.em-globe.is-gl .em-globe-land { display: block; }

/* ---- Title, phone, hint ---- */
.em-title {
  position: absolute; left: 0; right: 0; top: max(calc(6 * var(--vh)), calc(var(--nav-h) - 4px)); z-index: 3;
  margin: 0; padding: 0 16px; text-align: center;
  font-size: 44px; line-height: 46px; font-weight: 900; font-stretch: 125%;
  opacity: calc(1 - var(--h)); transform: translateY(calc(var(--h) * -24px));
}
.em-tag {
  position: absolute; left: 0; right: 0; top: calc(max(6 * var(--vh), var(--nav-h) - 4px) + 50px); z-index: 3;
  margin: 0; padding: 0 16px; text-align: center; font-size: 15px; line-height: 20px; color: var(--ink-muted);
  opacity: calc(1 - var(--h)); transform: translateY(calc(var(--h) * -24px));
}
.em-phone {
  position: absolute; left: 50%; top: calc(50 * var(--vh)); z-index: 1; box-sizing: border-box; will-change: transform, opacity;
  height: min(calc(58 * var(--vh)), 560px); aspect-ratio: 9 / 19; overflow: hidden;
  border: 1px solid var(--glass-line); border-radius: 44px; background: var(--surface); box-shadow: 0 0 0 6px var(--surface);
  opacity: calc(1 - var(--d) * .65);
  transform: translate(-50%, -50%) translateY(calc(30px + var(--q) * 10px + var(--f) * 24 * var(--vh))) scale(calc(1 - var(--d) * .06)) rotate(calc(var(--w) * 1.6deg));
}
/* The screenshot fades further than its frame, so its own text never competes with the part in front. */
.em-screen { position: relative; width: 100%; will-change: opacity; opacity: calc(1 - var(--d) * .7); }
.em-screen img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.em-screen .em-min { position: absolute; left: 0; top: 0; width: 62.5%; visibility: hidden; }
.em-screen .em-min.is-on { visibility: visible; }
.em-hint {
  position: fixed; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 3;
  margin: 0; text-align: center; font-size: 13px; line-height: 18px; opacity: calc(1 - var(--h)); pointer-events: none;
}

/* Arrows after a pause: there is more below. */
.em-more {
  position: fixed; left: 50%; bottom: calc(18px + (1 - var(--h)) * 28px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 48px; margin: 0 0 0 -36px; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.em-stage.is-idle .em-more { opacity: 1; visibility: visible; transition: opacity .6s; }
.em-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-radius: 14px; }
.em-more i { width: 16px; height: 16px; margin-top: -5px; box-sizing: border-box; border: solid currentColor; border-width: 0 3px 3px 0; border-radius: 1px; transform: rotate(45deg); opacity: .35; }
.em-stage.is-idle .em-more i { animation: emMore 1.5s ease-in-out infinite; }
.em-more i:nth-child(2) { animation-delay: .18s !important; }
.em-more i:nth-child(3) { animation-delay: .36s !important; }
@keyframes emMore { 0%, 70%, 100% { opacity: .4; transform: translateY(-2px) rotate(45deg); } 30% { opacity: 1; transform: translateY(4px) rotate(45deg); } }

/* ---- Floating parts: each rests tilted beside the phone (--rx, --ry) and takes the centre in its step.
   Away from the centre it keeps drifting with the scroll: --mx/--my swing with the waves, --gy moves on for good. */
.em-floats { position: absolute; inset: 0; z-index: 2; opacity: calc(1 - var(--f)); pointer-events: none; }
/* Share of the drift that applies: none while the part holds the centre. */
.em-float {
  --free: calc(1 - var(--a, 0));
  --tx: calc((var(--rx) + var(--w) * var(--mx)) * var(--free));
  --ty: calc((var(--ry) + var(--q) * var(--my) + var(--p) * var(--gy) * var(--vh)) * var(--free) - var(--a, 0) * var(--up, 8) * var(--vh));
  --rot: calc((var(--r) + var(--w) * var(--mr)) * var(--free));
}
.em-float { position: absolute; left: 50%; top: calc(50 * var(--vh)); white-space: nowrap; will-change: transform, opacity; opacity: calc(1 - var(--d) * .8 + var(--a, 0) * .8); z-index: calc(var(--a, 0) * 10); }
.em-z { position: relative; box-sizing: border-box; zoom: var(--z); }
.em-count {
  --r: -5deg; --mr: 5deg; --mx: 26px; --my: 18px; --gy: -4;
  --rx: calc(var(--dx) * -1); --ry: calc(var(--dy) * -.75);
  transform: translate(-50%, -50%)
    translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) * (.7 + var(--a) * .9) / var(--z)));
}
.em-slider {
  --r: 4deg; --mr: -5deg; --mx: -24px; --my: -20px; --gy: -5;
  --rx: calc(var(--dx) * .9); --ry: calc(var(--dy) * 1.05);
  transform: translate(-50%, -50%)
    translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) * (.8 + var(--a) * .8) / var(--z)));
}
.em-lanes {
  --r: -3deg; --mr: 4deg; --mx: 22px; --my: -22px; --gy: -4; --up: 10;
  --rx: calc(var(--dx) * -.95); --ry: calc(var(--dy) * .95);
  transform: translate(-50%, -50%)
    translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) * (.62 + var(--a) * .9) / var(--z)));
}
.em-lena {
  --r: 4deg; --mr: -5deg; --mx: -28px; --my: 20px; --gy: 3;
  --rx: calc(var(--dx) * 1.02); --ry: calc(var(--dy) * -.55);
  transform: translate(-50%, -50%)
    translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) * (.85 + var(--a) * .75) / var(--z)));
}
.em-slider .em-z { width: 300px; height: 56px; border-radius: 999px; background: var(--surface-high); }
.em-lanes .em-z { width: 340px; padding: 24px 24px 16px; border-radius: 26px; background: var(--surface); }
.em-ride .em-z { width: 320px; padding: 20px; border-radius: 26px; background: var(--surface); }
.em-day .em-z { width: 340px; padding: 18px 20px 16px; border-radius: 26px; background: var(--surface); }
.em-line .em-z { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.em-group {
  --r: 3deg; --mr: -8deg; --mx: 18px; --my: 24px; --gy: -9; --rx: calc(var(--dx) * -1.1); --ry: calc(var(--dy) * .1);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) / var(--z)));
}
/* The row of friends opens up on the way down the page. */
.em-group .et-avatar:nth-child(2) { transform: translateX(calc(var(--p) * 10px)); }
.em-group .et-avatar:nth-child(3) { transform: translateX(calc(var(--p) * 20px)); }
.em-group .et-avatar:nth-child(4) { transform: translateX(calc(var(--p) * 30px)); }
.em-line {
  --r: -4deg; --mr: 8deg; --mx: -20px; --my: -24px; --gy: 9; --rx: calc(var(--dx) * .98); --ry: calc(var(--dy) * .3);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) / var(--z)));
}

/* Badge out, the day chart in, then the ride (--b): all travel the same way to the centre. */
.em-float.em-line { opacity: calc((1 - var(--d) * .8) * (1 - var(--a) * 2)); }
.em-float.em-ride { opacity: calc(var(--a) * var(--b)); }
.em-float.em-day { opacity: calc(var(--a) * (1 - var(--b))); }
.em-ride {
  --r: -4deg; --mr: 8deg; --mx: -20px; --my: -24px; --gy: 9; --up: 9; --rx: calc(var(--dx) * .98); --ry: calc(var(--dy) * .3);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) * (.4 + var(--a) * 1.05 + var(--b) * .1) / var(--z)));
}
.em-day {
  --r: -4deg; --mr: 8deg; --mx: -20px; --my: -24px; --gy: 9; --up: 13; --big: 1.2; --bar: var(--transit-u);
  --rx: calc(var(--dx) * .98); --ry: calc(var(--dy) * .3);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) * (.4 + var(--a) * (var(--big) - .4) - var(--b) * .08) / var(--z)));
}
.em-day[data-line="s"] { --bar: #477f24; }
.em-day[data-line="bus"] { --bar: #cf491e; }
.em-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.em-day-tabs { display: flex; flex: none; gap: 4px; }
.em-day-tabs .et-line { padding: 0 6px; }
.em-day-tabs .et-line { opacity: .3; transition: opacity .25s; }
.em-day-tabs .is-on { opacity: 1; }
.em-day-bars { contain: strict; display: flex; align-items: flex-end; gap: 3px; height: 70px; margin: 14px 0 12px; }
.em-day-bars span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.em-day-bars i { width: 100%; height: 2px; border-radius: 3px; background: var(--bar); opacity: .9; transition: height .35s cubic-bezier(.2, .8, .2, 1), background-color .25s, opacity .25s; }
.em-day-bars b { font-size: 9px; line-height: 12px; font-weight: 500; color: var(--ink-muted); opacity: 0; font-variant-numeric: tabular-nums; }
.em-day-bars span:nth-child(3n+2) b { opacity: 1; }
.em-day-bars .is-past i { opacity: .4; }
.em-day-bars .is-now i { background: var(--ink); opacity: 1; }
.em-day-bars .is-now + span b, .em-day-bars span:has(+ .is-now) b { opacity: 0; }
.em-day-bars .is-now b { opacity: 1; color: var(--ink); font-weight: 700; }
.em-day-bands { display: grid; gap: 4px; font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.em-day-bands div { display: grid; grid-template-columns: 92px 1fr; }
.em-day-bands .is-now { color: var(--ink); font-weight: 600; }
.em-day-last { margin-top: 10px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.em-ride-row { display: flex; align-items: center; gap: 8px; }
.em-ride-dir { font-size: 17px; line-height: 22px; font-weight: 600; }
.em-ride-dir span { color: var(--ink-muted); }
.em-ride-main { align-items: flex-end; justify-content: space-between; margin: 10px 0 12px; }
.em-ride-stops { font-size: 30px; line-height: 34px; font-weight: 900; font-stretch: 125%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.em-ride-stops.is-off { font-size: 22px; line-height: 34px; font-stretch: 100%; font-weight: 800; }
.em-ride-to { text-align: right; font-size: 13px; line-height: 17px; color: var(--ink-muted); }
.em-ride-to b { font-weight: 600; color: var(--ink); }
.em-ride-to em { font-style: normal; font-weight: 600; color: var(--status-late); }
.em-ride-stops.is-off + .em-ride-to b { display: none; }
/* The own stop: the words are too long to share a row with the time (German most of all), so the time goes below. */
.em-ride-main:has(.is-off) { flex-direction: column; align-items: flex-start; gap: 0; }
.em-ride-stops.is-off { line-height: 28px; }
.em-ride-stops.is-off + .em-ride-to { text-align: left; }
.em-ride-stops.is-off + .em-ride-to br { display: none; }
.em-ride-bar { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 6px; }
.em-ride-bar i { border-radius: 3px; background: var(--surface-high); }
.em-ride-bar span { position: absolute; left: 0; top: 0; bottom: 0; right: 0; border-radius: 3px; background: var(--transit-u); clip-path: inset(0 calc((1 - var(--t)) * 92%) 0 0 round 3px); }
.em-ride-bar em { position: absolute; left: 15px; top: -4px; transform: translateX(calc(var(--t) * 258px)); width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); }

/* Privacy: only there in its step, what friends get against what stays with you. */
.em-float.em-priv { opacity: var(--a); }
.em-priv {
  --r: 3deg; --mr: -6deg; --mx: 18px; --my: 20px; --gy: 0; --up: 11; --rx: 0px; --ry: calc(var(--dy) * .6);
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--fs) * (.5 + var(--a) * 1.02) / var(--z)));
}
.em-priv .em-z { width: 320px; padding: 8px 20px; border-radius: 26px; background: var(--surface); }
.em-priv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: 17px; line-height: 22px; font-weight: 600; }
.em-priv-row + .em-priv-row { border-top: 1px solid var(--hairline); }
.em-priv-no { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-muted); }
.em-priv-no i { width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; }

.em-slider .em-z > span { position: absolute; display: flex; align-items: center; justify-content: center; }
.em-slider .em-slider-fill { left: 4px; top: 4px; bottom: 4px; right: 4px; background: var(--glass); clip-path: inset(0 calc((1 - var(--t)) * 244px) 0 0 round 24px); }
.em-slider .em-slider-label { left: 56px; right: 16px; top: 0; bottom: 0; font-size: 17px; line-height: 22px; font-weight: 600; opacity: calc(1 - var(--t) * 1.6); }
.em-slider .em-slider-status { left: 20px; right: 60px; top: 0; bottom: 0; opacity: var(--e); }
.em-slider .em-slider-knob {
  left: 4px; transform: translateX(calc(var(--t) * 244px)); top: 4px; width: 48px; height: 48px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); opacity: calc(1 - var(--e));
}
.em-slider .em-slider-me { left: 248px; top: 4px; opacity: var(--e); }

/* In its step the slider can be pulled; pan-y keeps vertical scrolling working on it. */
.em-slider.is-live { pointer-events: auto; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.em-slider.is-drag { cursor: grabbing; }
.em-slider.is-ready .em-slider-knob { animation: emNudge 2.4s ease-in-out .8s infinite; }
@keyframes emNudge { 0%, 40%, 100% { translate: none; } 14% { translate: 16px; } 28% { translate: none; } }

.em-lena .et-card { display: flex; align-items: center; gap: 12px; }
.em-lena-text { display: flex; flex-direction: column; gap: 2px; }
.em-lena-name { font-size: 17px; line-height: 22px; font-weight: 600; }
.em-lena:not(.is-there) .em-when-there, .em-lena.is-there .em-when-travel { display: none; }

/* ---- Text of the steps ---- */
.em-step {
  position: absolute; left: 0; right: 0; top: var(--text-top); z-index: 3; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; text-align: center; pointer-events: none;
  opacity: var(--a); transform: translateY(calc(var(--y) * 1px)); will-change: transform, opacity;
}
.em-step h2 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; text-wrap: balance; }
.em-step p { margin: 0; max-width: 440px; font-size: 16px; line-height: 21px; text-wrap: balance; }

/* ---- Finale ---- */
.em-finale {
  position: absolute; left: 0; right: 0; top: max(calc(17 * var(--vh)), calc(var(--nav-h) + 16px)); z-index: 4; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 16px; text-align: center;
  opacity: var(--f); transform: translateY(calc((1 - var(--f)) * 40px)); pointer-events: none;
}
.em-finale h2 { margin: 0; font-size: 34px; line-height: 41px; font-weight: 700; }

/* Impressum: bottom right, always in view and away from the arrows, which would otherwise point at it. */
.em-stage .cz-foot {
  position: fixed; left: auto; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(10px, env(safe-area-inset-bottom, 0px)); padding: 0;
}
.em-stage .cz-legal-link { padding: 5px 12px; background: #000000c7; color: #ffffffd9; font-size: 12px; }

/* ---- Parts of the Etamo design system used here ---- */
.et-count { display: flex; flex-direction: column; gap: 2px; }
.et-count__kicker { color: var(--ink-muted); font-weight: 600; font-size: 15px; line-height: 20px; }
.et-count__time { margin: 0; font-size: 44px; line-height: 46px; font-weight: 900; font-stretch: 125%; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.et-card { box-sizing: border-box; padding: 20px; border-radius: 26px; background: var(--surface); }

.et-avatar { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 700; color: var(--on-ink); -webkit-user-select: none; user-select: none; }
.et-avatar--28 { width: 28px; height: 28px; font-size: 11px; }
.et-avatar--44 { width: 44px; height: 44px; font-size: 17px; }
.et-avatar--48 { width: 48px; height: 48px; font-size: 18px; }
.et-avatar--self { background: var(--avatar-self); }
.et-avatar--teal { background: var(--guest-teal); }
.et-avatar--brown { background: var(--guest-brown); }
.et-avatar__check { display: none; position: absolute; right: -3px; bottom: -3px; width: 42%; height: 42%; border-radius: 50%; background: var(--status-ok); color: var(--on-ink); place-items: center; box-shadow: 0 0 0 2px var(--ground); }
.et-avatar__check svg { width: 70%; height: 70%; }
.is-there .et-avatar__check { display: grid; }
.et-avatars { display: inline-flex; }
.et-avatars .et-avatar { box-shadow: 0 0 0 2px var(--surface); }
.et-avatars .et-avatar + .et-avatar { margin-left: -10px; }

.et-status { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.et-status i { width: 8px; height: 8px; flex: none; align-self: center; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
.et-status b { font-weight: 700; }
.et-status--ok b, .et-status--ok i { color: var(--status-ok); }
.et-status--late b, .et-status--late i { color: var(--status-late); }

.et-line { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; color: var(--ink); font-size: 11px; line-height: 13px; font-weight: 800; }
.et-line--u { background: var(--transit-u); }
.et-line--s { background: #477f24; }
.et-line--bus { background: #cf491e; }

.et-orbits { position: relative; }
.et-orbits__lane { position: relative; height: 36px; }
.et-orbits__lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hairline); }
.et-orbits__lane[data-lane="max"] { --to: .64; }
.et-orbits__lane[data-lane="du"] { --to: .7; }
.et-orbits__lane[data-lane="lena"] { --to: .79; }
.et-orbits__trace { position: absolute; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--atmosphere); left: 0; right: 0; clip-path: inset(0 calc((1 - var(--to)) * 100%) 0 calc(min(var(--now), var(--to)) * 100%) round 2px); }
.et-orbits__lane.is-there .et-orbits__trace { display: none; }
.et-orbits__who { position: absolute; left: calc(var(--to) * 100%); top: 50%; transform: translate(-50%, -50%); }
.et-orbits__who .et-avatar { display: grid; }
.et-orbits__line { position: absolute; left: 0; transform: translateX(calc(var(--now) * 292px)); top: 0; bottom: 22px; width: 0; border-left: 1.5px solid var(--ink); }
.et-orbits__line span { position: absolute; bottom: -20px; transform: translateX(-50%); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.et-orbits__flag { position: absolute; left: 73%; top: 0; bottom: 22px; width: 0; border-left: 1.5px dashed var(--ink-muted); }
.et-orbits__flag span { position: absolute; top: -2px; left: 6px; font-size: 12px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; }
.et-orbits__ticks { position: relative; height: 22px; margin-top: 2px; border-top: 1px solid var(--hairline); }
.et-orbits__ticks span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
/* The tick under the moving „Jetzt“ steps back, so the two labels never overlap. */
.et-orbits__ticks span { transition: opacity .15s; }
.et-orbits__ticks .is-near { opacity: 0; }
.et-orbits__ticks .is-1800 { left: 10%; }
.et-orbits__ticks .is-1820 { left: 40%; }
.et-orbits__ticks .is-1840 { left: 70%; }

/* ---- Small screens: the centred parts (up to 336 px × 1.6) must fit the width and clear the text ---- */
@media (max-width: 640px) {
  .em-stage { --fs: .66; }
  /* Beside the phone there is no room: a smaller phone, with the parts above and below it. */
  .em-phone { height: calc(50 * var(--vh)); border-radius: 36px; }
  .em-count { --mx: -12px; --my: -8px; --gy: -2; --rx: calc(var(--dx) * -.95); --ry: calc(-28 * var(--vh)); }
  .em-lena { --mx: 10px; --my: 8px; --gy: 0; --rx: calc(var(--dx) * .6); --ry: calc(-24 * var(--vh)); }
  .em-slider { --mx: 10px; }
  .em-lanes { --mx: -10px; }
  .em-lanes { --rx: calc(var(--dx) * -.95); --ry: calc(28.5 * var(--vh)); }
  .em-slider { --rx: calc(var(--dx) * .85); --ry: calc(27.5 * var(--vh)); }
  .em-day { --big: 1.42; }
  .em-line .em-z { padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); }
  .em-step h2 { font-size: 26px; line-height: 32px; }
}
/* No room for the line between title and countdown on shorter phones. */
@media (max-width: 640px) and (max-height: 800px) { .em-tag { display: none; } }
@media (max-width: 389px) { .em-stage { --fs: .58; } }
@media (max-width: 345px) { .em-stage { --fs: .52; } }
@media (min-width: 641px) and (max-height: 760px) { .em-stage { --fs: .82; } }
@media (min-width: 641px) and (max-height: 620px) { .em-stage { --fs: .66; } }
/* Phones held sideways. */
@media (max-height: 460px) {
  .em-stage { --fs: .5; --dx: min(27vw, 240px); --text-top: calc(60 * var(--vh)); }
  .em-title { font-size: 32px; line-height: 34px; top: max(calc(4 * var(--vh)), 14px); }
  .em-tag { display: none; }
  .em-phone { border-radius: 22px; }
  .em-globe { transform: translateY(70px); }
  .em-finale { top: calc(var(--nav-h) + 4px); }
  .em-hint { display: none; }
  .em-more { bottom: 6px; height: 40px; }
  .em-more i { width: 10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .em-stage.is-idle .em-more i { animation: none; opacity: .9; }
  .em-slider.is-ready .em-slider-knob { animation: none; }
}
