/* The beta page: only the hero. The headline on the left, the team on the right. The SunMates
   fly in on a curve, each with a tail in its own colour (drawn on the canvas by beta.js), land
   with a bounce and then live a little: they float, look around, hop when a job is done. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; min-height: 100svh; padding: 124px var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 48px clamp(40px, 5vw, 96px); align-items: center; }
.hero::after { content: ''; position: absolute; right: -20vw; bottom: -40vh; width: 70vw; height: 90vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
/* the sky the tails are drawn on: behind the text and the team */
.hero > .himmel { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* the headline carries the page: the status is a quiet line above it, the invite a single line below */
.hero-copy { display: grid; gap: 0; justify-items: start; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(22px, 2.4vw, 34px); font-size: .8125rem; font-weight: 650; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--on-brand-2); }
.live-punkt { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4ee08a; }
.live-punkt::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #4ee08a; animation: live-puls 1.8s ease-out infinite; }
@keyframes live-puls { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
.h1 { display: grid; gap: clamp(10px, 1.2vw, 18px); }
.h1-marke { font-size: clamp(4.25rem, 9.2vw, 9.25rem); font-weight: 700; letter-spacing: -0.055em; line-height: .86; }
.h1-zeile { font-size: clamp(1.5rem, .9rem + 2vw, 2.875rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--on-brand-2); }
.warte { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(28px, 3.2vw, 44px); }
.warte p { font-size: 1.0625rem; font-weight: 550; letter-spacing: -0.01em; color: var(--on-brand-2); }
.warte .btn { padding: 13px 22px; font-size: 1rem; }
.lp-js .hero-copy > * { animation: fade .9s var(--ease) both; }
.lp-js .hero-copy > :nth-child(2) { animation-delay: .12s; } .lp-js .hero-copy > :nth-child(3) { animation-delay: .24s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* three dots in steps: someone is at work */
.dots { display: inline-flex; gap: 3px; flex: none; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .25; animation: dot-step 1.2s steps(1) infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot-step { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
.tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; position: relative; }
.tick::after { content: ''; position: absolute; left: 5.5px; top: 3px; width: 3.5px; height: 7px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* five teammates, each on a white disc */
.crew { align-self: center; display: grid; gap: 14px; }
.see { position: relative; height: clamp(540px, 62vh, 580px); margin: 0; padding: 0; list-style: none; }
.surfer { position: absolute; left: var(--x); top: var(--y); width: var(--s); margin-left: calc(var(--s) / -2); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.surfer-ritt, .surfer-wippe, .surfer-hupf { display: block; position: relative; width: 100%; height: 100%; }
.surfer-ritt { will-change: transform; }
.surfer-hupf { transform-origin: 50% 60%; }
/* no disc behind the figures: they stand on the cobalt in their own colours, the sun in pink and the planet in yellow */
.surfer-fig { display: block; width: var(--s); height: var(--s); padding: 3%; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 16px 16px rgba(8,16,80,.32)); }
.surfer-fig .sunmate { transition: transform .45s var(--spring); transform-origin: 50% 80%; }
.surfer.is-busy .surfer-fig .sunmate { transform: scale(1.06); }
.surfer .sunmate:not(.is-working) .sunmate-eyes { animation: sunmate-blink var(--blink-t, 4.2s) var(--blink-d, .8s) infinite; }
/* the eyes follow the pointer or glance at a neighbour (beta.js sets translate) */
.surfer .sunmate-eyes { transition: translate .45s var(--ease); }
/* the figure leans a little towards what it looks at */
.surfer .sunmate-lean { transform-box: fill-box; transform-origin: 50% 85%; transition: rotate .7s var(--ease); }
/* at work, but unhurried */
.surfer .sunmate.is-working .sunmate-eyes { animation-duration: 5.2s; }
.surfer .sunmate.is-working .sunmate-ray, .surfer .sunmate.is-working .sunmate-bob { animation-duration: 1.9s; }
.surfer .sunmate.is-working .sunmate-tail { animation-duration: 1.25s; }
.surfer .sunmate.is-working .sunmate-shake { animation-duration: .7s; }
.surfer .sunmate.is-working .sunmate-cradle { animation-duration: 2.4s; }
.surfer .sunmate.is-working .sunmate-star { animation-duration: 2s; }
.surfer .sunmate.is-working .sunmate-spark { animation-duration: 2.4s; }
.surfer .sunmate.is-working .sunmate-ring { animation-duration: 1.6s; }
.surfer-schild { display: grid; justify-items: center; gap: 8px; margin-top: 14px; width: max-content; max-width: 270px; text-align: center; color: #fff; }
.mate-name { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.2; }
.mate-line { display: flex; align-items: center; gap: 8px; min-height: 34px; max-width: 100%; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: .9375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; overflow: hidden; }
.mate-line > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mate-line.is-new { background: #fff; color: var(--brand); }
.mate-line.is-new .tick { background: var(--brand); } .mate-line.is-new .tick::after { border-color: #fff; }
.lp-js .mate-line > * { animation: line-in .4s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
.team-live { display: none; }

/* the card at the SunMate that has a draft ready */
.fk { display: grid; gap: 8px; padding: 14px 16px 16px; border-radius: 18px; background: #fff; color: var(--ink); font-size: .875rem; line-height: 1.4; }
.fk-kopf { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.fk-fig { display: block; flex: none; width: 26px; height: 26px; }
.fk-betreff { font-weight: 650; font-size: 1rem; letter-spacing: -0.015em; line-height: 1.25; }
.fk-knoepfe { display: flex; gap: 8px; margin-top: 4px; }
.fk-knoepfe span { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .8125rem; line-height: 1; }
.fk-ja { background: var(--brand); color: #fff; }
.fk-nein { background: var(--tile); color: var(--ink); }
.crew-karte { position: absolute; z-index: 3; left: var(--kx, 0px); top: var(--ky, 0px); width: 272px; box-shadow: 0 34px 60px -24px rgba(4,10,60,.8), inset 0 0 0 1.5px #00781d; }
.lp-js .crew-karte { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transition: opacity .3s var(--ease), transform .55s var(--spring), visibility 0s .3s; }
.lp-js .crew-karte.is-da { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .55s var(--spring); }
html:not(.lp-js) .crew-karte { left: auto; right: 0; top: auto; bottom: 0; }

/* arriving and living. The flight itself is driven by beta.js (transform on .surfer-ritt);
   here: waiting out of sight, the landing, floating, and the small gestures. */
@media (prefers-reduced-motion: no-preference) {
  .lp-js .surfer .surfer-ritt, .lp-js .surfer .surfer-schild { opacity: 0; }
  .lp-js .surfer.is-in .surfer-ritt { opacity: 1; transition: opacity .18s linear; }
  .lp-js .surfer.is-da .surfer-schild { opacity: 1; animation: line-in .5s var(--ease) .15s both; }
  .surfer.is-da .surfer-wippe { animation: schweben-beta var(--float-t, 6s) ease-in-out var(--float-d, 0s) infinite; }
  .surfer.is-land .surfer-hupf { animation: mate-land 1.5s ease-out both; }
  .surfer.is-hupf .surfer-hupf { animation: mate-hupf 1.5s ease-in-out both; }
  .surfer.is-freu .surfer-hupf { animation: mate-freu 2.2s ease-in-out both; }
  .surfer.is-wink .surfer-hupf { animation: mate-wink 2s ease-in-out both; }
  .surfer.is-salto .surfer-hupf { animation: mate-salto 2.4s cubic-bezier(.45,0,.2,1) both; }

}
/* The figures move like jelly or soap bubbles: soft, slow, a little out of shape and back.
   Floating in place: up and down, a sway, and the body gives a little. */
@keyframes schweben-beta {
  0%, 100% { transform: translateY(2.5%) rotate(-2deg) scale(1.02, .98); }
  50% { transform: translateY(-3.5%) rotate(2deg) scale(.98, 1.03); }
}
/* landing: it gives, swings back and settles */
@keyframes mate-land {
  0% { transform: scale(.92, 1.1); }
  18% { transform: translateY(4%) scale(1.14, .86); }
  40% { transform: translateY(-3%) scale(.94, 1.07); }
  60% { transform: scale(1.05, .96); }
  80% { transform: scale(.98, 1.02); }
  100% { transform: none; }
}
/* a job is done: a small, soft bob */
@keyframes mate-hupf {
  0%, 100% { transform: none; }
  22% { transform: translateY(2%) scale(1.06, .94); }
  48% { transform: translateY(-5%) scale(.96, 1.05); }
  72% { transform: translateY(0) scale(1.03, .97); }
  88% { transform: scale(.99, 1.01); }
}
/* tapped: it wobbles like jelly */
@keyframes mate-freu {
  0%, 100% { transform: none; }
  12% { transform: scale(1.14, .88) rotate(-3deg); }
  28% { transform: scale(.9, 1.1) rotate(3deg); }
  44% { transform: scale(1.08, .93) rotate(-2deg); }
  60% { transform: scale(.95, 1.05) rotate(1.5deg); }
  76% { transform: scale(1.03, .98); }
  90% { transform: scale(.99, 1.01); }
}
/* tapped, the other way: one slow roll, like a bubble turning over */
@keyframes mate-salto {
  0% { transform: none; }
  12% { transform: scale(1.06, .95); }
  50% { transform: translateY(-4%) rotate(180deg) scale(.97, 1.03); }
  88% { transform: rotate(360deg) scale(1.04, .97); }
  100% { transform: rotate(360deg); }
}
@keyframes mate-wink {
  0%, 100% { transform: none; }
  20% { transform: rotate(-9deg) scale(1.02, .98); }
  42% { transform: rotate(8deg) scale(.98, 1.02); }
  62% { transform: rotate(-5deg); }
  82% { transform: rotate(3deg); }
}

@media (max-width: 1200px) {
  .see { height: 470px; }
  .surfer { --s: calc(var(--s0) * .84) !important; }
  .mate-name { font-size: .9375rem; }
  .mate-line { font-size: .8125rem; min-height: 30px; }
  .surfer-schild { max-width: 210px; }
}

/* phones and narrow tablets: the same picture as on wide screens, one column. The headline first,
   below it the team in its formation, smaller, with names, lines and the card that pops up. */
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; align-content: center; padding: 108px var(--gutter) 64px; gap: 52px; }
  .warte { margin-top: 26px; }
  .h1-marke { font-size: min(6rem, 19vw); }
  .h1-zeile { font-size: min(2.25rem, 6.6vw); text-wrap: wrap; }
  .crew { width: 100%; max-width: 440px; justify-self: center; }
  .see { height: 440px; }
  .surfer { --s: calc(var(--s0) * .66) !important; }
  .surfer[data-mate="head"] { top: 0; }
  .surfer[data-mate="mail"] { left: 25%; top: 164px; }
  .surfer[data-mate="cal"] { left: 75%; top: 164px; }
  .surfer[data-mate="quotes"] { left: 26%; top: 312px; }
  .surfer[data-mate="complaints"] { left: 74%; top: 312px; }
  .surfer-fig { filter: drop-shadow(0 10px 10px rgba(8,16,80,.32)); }
  .surfer-schild { margin-top: 8px; gap: 6px; max-width: min(206px, 44.5vw); }
  .surfer[data-mate="head"] .surfer-schild { max-width: 250px; }
  .mate-name { font-size: .8125rem; line-height: 1.2; }
  .mate-line { min-height: 28px; padding: 5px 10px 5px 7px; gap: 5px; font-size: .75rem; letter-spacing: -0.015em; }
  .mate-line .dots { gap: 2px; } .mate-line .dots i { width: 4px; height: 4px; }
  .mate-line .tick { width: 14px; height: 14px; } .mate-line .tick::after { left: 4.8px; top: 2.6px; width: 3px; height: 6px; }
  .crew-karte { width: 236px; padding: 12px 14px 14px; }
  .crew-karte .fk-betreff { font-size: .9375rem; }
}
@media (max-width: 767px) {
  .warte p { font-size: 1rem; }
  .warte .btn { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-js .hero-copy > *, .dots i, .lp-js .mate-line > *, .team-live > *, .live-punkt::after { animation: none; }
  .surfer-fig .sunmate, .surfer .sunmate-eyes, .surfer .sunmate-lean { transition: none; }
  .lp-js .crew-karte, .lp-js .crew-karte.is-da { transition: none; }
  .himmel { display: none; }
}

/* out of view: everything stands still */
.hero.is-away .sunmate *, .hero.is-away .dots i, .hero.is-away .surfer-wippe, .hero.is-away .live-punkt::after { animation-play-state: paused !important; }
