/* =========================
   PAGE: REFERENZEN
========================= */

.tm-ref-page {
  background: #ffffff;
  color: #0f172a;
}

/* HERO */

.tm-ref-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* CASES */

.tm-ref-cases {
  background: #ffffff;
}

.tm-ref-case-list {
  display: grid;
  gap: 30px;
}

.tm-ref-case {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 38px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .08), transparent 34%),
    #ffffff;
  box-shadow:
    0 22px 70px rgba(15, 23, 42, .055),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.tm-ref-case:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
}

.tm-ref-case:nth-child(even) .tm-ref-preview {
  order: 2;
}

.tm-ref-preview {
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .14);
}

.tm-ref-realshot {
  padding: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-ref-realshot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .12);
}

.tm-ref-browser {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #2f3a52;
}

.tm-ref-browser-dots {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tm-ref-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
}

.tm-ref-browser-url {
  flex: 1;
  min-height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tm-ref-content {
  max-width: 620px;
}

.tm-ref-content h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: .94;
  letter-spacing: -.07em;
}

.tm-ref-intro {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 1.04rem;
  line-height: 1.75;
}

.tm-ref-facts {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.tm-ref-facts div {
  position: relative;
  padding: 20px 22px 20px 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, .035),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.tm-ref-facts strong {
  display: block;
  margin-bottom: 7px;
  color: #0f172a;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tm-ref-facts p {
  margin: 0;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.62;
}

/* METHOD */

.tm-ref-method {
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, .10), transparent 32%),
    #f8fafc;
}

.tm-ref-method-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: start;
}

.tm-ref-method h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: .92;
  letter-spacing: -.07em;
}

@media (max-width: 980px) {
  .tm-ref-case,
  .tm-ref-case:nth-child(even),
  .tm-ref-method-grid {
    grid-template-columns: 1fr;
  }

  .tm-ref-case:nth-child(even) .tm-ref-preview {
    order: 0;
  }
}

@media (max-width: 640px) {
  .tm-ref-case {
    gap: 28px;
    padding: 18px;
    border-radius: 30px;
  }

  .tm-ref-content h3 {
    margin-top: 2px;
    font-size: clamp(2.2rem, 12vw, 3.35rem);
  }

  .tm-ref-facts {
    margin-top: 22px;
    gap: 10px;
  }

  .tm-ref-facts div {
    padding: 16px 18px;
    border-radius: 18px;
  }

  .tm-ref-facts strong {
    font-size: .76rem;
  }

  .tm-ref-facts p {
    font-size: .88rem;
    line-height: 1.55;
  }
}


/* =========================
   LAUNCH MOBILE VIEWPORT ALIGNMENT: REFERENZEN
========================= */

@media (max-width: 760px) {
  .tm-ref-hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .tm-ref-hero .tm-page-hero-grid {
    gap: 30px;
  }

  .tm-ref-hero .tm-page-hero-lead {
    margin-top: 18px;
  }

  .tm-ref-hero .tm-page-hero-actions {
    margin-top: 22px;
  }
}
