/* "Mehr zu mir" (ueber-mich.html); colours and buttons come from styles.css. */
.about main {
  position: relative;
  z-index: 1;
}

.ab-cloud {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ab-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
}

.ab-title > span:first-child:not(.word) {
  color: var(--text-muted);
}

.ab-hero {
  display: grid;
  align-content: end;
  justify-items: center;
  min-height: 100svh;
  padding: 0 24px 22svh;
}

.ab-hero__logo {
  position: absolute;
  top: 42svh;
  left: 50%;
  width: min(86vw, 1440px / 1.2);
  height: auto;
  max-width: 1000px;
  transform: translate(-50%, -50%);
}

.has-cloud .ab-hero__logo {
  visibility: hidden;
}

.ab-story {
  display: grid;
  place-items: center;
  min-height: 110svh;
  padding: 0 24px;
}

.ab-story p {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

.ab-path.is-live {
  height: 480svh;
}

.ab-path__stage {
  padding: 80px 24px;
}

.is-live > .ab-path__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

.ab-step {
  margin-bottom: 60px;
}

.is-live .ab-step {
  position: absolute;
  top: 50%;
  left: max(24px, 12vw);
  width: min(430px, 36vw);
  margin: 0;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(calc(-50% + 30px));
  transition: opacity 500ms ease, filter 500ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-live .ab-step.is-on {
  opacity: 1;
  filter: none;
  transform: translateY(-50%);
}

.ab-step__no {
  margin: 0 0 10px;
  color: var(--primary-soft);
  font-size: 19px;
  font-weight: 600;
}

.ab-step h2 {
  margin: 0 0 14px;
  font-size: clamp(52px, 7.4vw, 112px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ab-step > p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.45;
}

.ab-path__dots {
  display: none;
}

.is-live .ab-path__dots {
  position: absolute;
  top: 50%;
  left: max(6px, 5vw);
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.ab-path__dots i {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 400ms ease, background-color 400ms ease;
}

.ab-path__dots i.is-on {
  height: 30px;
  background: var(--primary-soft);
}

.ab-facts,
.ab-tools,
.ab-films {
  padding: 120px 24px 60px;
}

.ab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 56px auto 0;
  perspective: 1400px;
}

.ab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  background: #101012;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 300ms ease, opacity 700ms ease, translate 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ab-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 0%), rgba(41, 151, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

@media (hover: hover) {
  .ab-card:hover::after {
    opacity: 1;
  }
}

.ab-card.will-in:not(.is-in) {
  opacity: 0;
  translate: 0 60px;
}

.ab-card--home {
  grid-row: span 2;
  grid-column: span 2;
}

.ab-card--home .globe {
  position: absolute;
  top: -4%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1;
  translate: -50% 0;
}

.ab-card--home > div {
  position: relative;
  text-shadow: 0 0 20px #000;
}

.ab-card--wide,
.ab-card--star,
.ab-card--blog {
  grid-column: span 2;
}

.ab-card h3 {
  margin: 4px 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ab-card p,
.ab-card small {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.4;
}

.ab-num {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.ab-card--star .ab-num {
  color: var(--rating);
}

.ab-clock {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ab-icons {
  position: absolute;
  top: 26px;
  left: 26px;
  display: flex;
  gap: 8px;
}

.ab-icons img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.ab-tools__view {
  display: flex;
  width: max-content;
  margin: 50px -24px 0;
  animation: ab-run 40s linear infinite;
}

.ab-tools {
  overflow: hidden;
}

.ab-tools ul,
.ab-films ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-tools ul {
  display: flex;
}

.ab-tools li {
  display: grid;
  gap: 2px;
  padding: 0 48px;
}

.ab-tools b {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.ab-tools small {
  color: var(--primary-soft);
  font-size: 17px;
}

@keyframes ab-run {
  to { transform: translateX(-50%); }
}

.ab-films {
  display: grid;
  justify-items: center;
  gap: 44px;
  padding-bottom: 140px;
}

.ab-films ul {
  width: min(1080px, 100%);
}

.ab-films li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-soft);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: padding 400ms cubic-bezier(0.2, 0.8, 0.2, 1), color 300ms ease;
}

.ab-films small {
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: right;
}

@media (hover: hover) {
  .ab-films li:hover {
    padding-left: 24px;
    color: #fff;
  }
}

@media (max-width: 900px) {
  .is-live .ab-step {
    top: auto;
    bottom: 9svh;
    left: 24px;
    width: calc(100% - 48px);
    text-align: center;
    transform: translateY(30px);
  }

  .is-live .ab-step.is-on {
    transform: none;
  }

  .is-live .ab-path__dots {
    top: auto;
    bottom: 4svh;
    left: 50%;
    grid-auto-flow: column;
    transform: translateX(-50%);
  }

  .ab-path__dots i.is-on {
    width: 26px;
    height: 6px;
  }

  .ab-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ab-card {
    min-height: 190px;
    padding: 20px;
  }

  .ab-card--home {
    min-height: 430px;
  }

  .ab-facts,
  .ab-tools,
  .ab-films {
    padding-top: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-live .ab-step,
  .ab-card,
  .ab-path__dots i {
    transition: none;
  }

  .ab-tools__view {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    margin-inline: 0;
  }

  .ab-tools ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ab-tools ul[aria-hidden] {
    display: none;
  }
}

/* Tools with their logos */
.ab-tool { flex: none; width: 40px; height: 40px; margin-bottom: 12px; }

/* The path moves sideways, like the steps on the home page. */
.is-live .ab-step {
  opacity: 1;
  filter: none;
  transform: translate(calc(var(--d, 0) * 100vw), -50%);
  transition: none;
}
.is-live .ab-step.is-on { transform: translate(calc(var(--d, 0) * 100vw), -50%); }
.is-live .ab-step h2 { transform: translateX(calc(var(--d, 0) * 24vw)); }
@media (min-width: 901px) { .ab-card--star { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .is-live .ab-step,
  .is-live .ab-step.is-on { transform: translateX(calc(var(--d, 0) * 100vw)); }
}
