/* Showcase: ausgewogene Größe, kein Scroll-Wash */

#einblicke.tf-section--showcase {
  background: linear-gradient(180deg, var(--tf-bg-elev) 0%, var(--tf-bg) 100%);
}

#einblicke.tf-section--showcase .tf-container {
  max-width: min(980px, 94vw);
}

#einblicke .tf-section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  text-align: center;
}

#einblicke .tf-section__subtitle {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.tf-showcase--cinema .tf-showcase {
  max-width: none;
  gap: clamp(2.75rem, 6vw, 4rem);
}

.tf-showcase--cinema .tf-showcase__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 0 !important;
  padding-block: 0 !important;
}

.tf-showcase--cinema .tf-showcase__figure {
  flex: none !important;
  max-width: min(580px, 100%) !important;
  width: 100%;
  margin-inline: auto;
  position: static !important;
  order: 1;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--tf-radius);
  background: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.tf-showcase--cinema .tf-showcase__img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  background: #0f172a;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.tf-showcase--cinema .tf-showcase__copy {
  flex: none !important;
  max-width: min(32rem, 100%) !important;
  width: 100%;
  margin-inline: auto;
  order: 2;
  text-align: center;
  padding: 0 0.25rem;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.tf-showcase--cinema .tf-showcase__heading {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.tf-showcase--cinema .tf-showcase__text {
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (min-width: 880px) {
  .tf-showcase--cinema .tf-showcase__item {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    text-align: left;
  }

  .tf-showcase--cinema .tf-showcase__item--reverse {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .tf-showcase--cinema .tf-showcase__item--reverse .tf-showcase__figure {
    order: 2;
  }

  .tf-showcase--cinema .tf-showcase__item--reverse .tf-showcase__copy {
    order: 1;
    text-align: right;
    margin-inline: 0 0 auto;
  }

  .tf-showcase--cinema .tf-showcase__copy {
    text-align: left;
    margin-inline: 0;
  }

  .tf-showcase--cinema .tf-showcase__figure {
    margin-inline: 0;
    max-width: 100% !important;
  }
}

/* Geräte: Showcase mit Glow und klarer Gruppierung */
.tf-section--cinema-devices {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.tf-section--cinema-devices .tf-section__subtitle {
  max-width: 36rem;
  margin-inline: auto;
}

.tf-devices-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(960px, 96vw);
  margin: clamp(0.1rem, 0.45vw, 0.3rem) auto 0;
  padding: clamp(0.2rem, 0.8vw, 0.5rem) clamp(0.75rem, 2vw, 1.25rem) clamp(0.75rem, 1.5vw, 1rem);
}

.tf-devices-showcase__panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tf-devices-showcase__glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(92%, 680px);
  height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(59, 130, 246, 0.06) 45%,
    transparent 72%
  );
}

.tf-devices-showcase__ring {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: min(90%, 760px);
  height: 32%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.2) 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.tf-devices-row {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1.05fr) minmax(0, 1.2fr);
  grid-template-areas: "laptop phone tablet";
  align-items: end;
  justify-items: center;
  column-gap: clamp(0.25rem, 1.2vw, 0.75rem);
  margin: 0 auto;
  padding: 0 clamp(0.25rem, 2vw, 1rem) 0.35rem;
  min-height: clamp(240px, 38vw, 360px);
  max-width: min(920px, 100%);
}

.tf-devices-row__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: transparent;
  text-align: center;
  transition: transform 0.35s ease;
}

.tf-devices-row__item:hover {
  transform: translateY(-6px);
}

/* Gemeinsame Bildhöhe — Unterkante der Geräte auf einer Linie */
.tf-devices-row__visual {
  width: 100%;
  height: clamp(172px, 30vw, 268px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.tf-devices-row__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 36px rgba(15, 23, 42, 0.22));
}

/* Tablet-PNG: weniger Rand unten — optisch unten ausrichten + etwas größer */
.tf-devices-row__item--tablet .tf-devices-row__visual img {
  transform: translateY(clamp(1.35rem, 4.2vw, 3rem)) scale(1.14);
  transform-origin: center bottom;
}

.tf-devices-row__item--tablet:hover .tf-devices-row__visual img {
  transform: translateY(calc(clamp(1.35rem, 4.2vw, 3rem) - 6px)) scale(1.14);
  transform-origin: center bottom;
}

/* Größen wie Referenz: Laptop größt, Smartphone mittig vorn, Tablet kleiner */
.tf-devices-row__item--laptop {
  grid-area: laptop;
  z-index: 1;
  max-width: clamp(340px, 54vw, 520px);
  justify-self: end;
}

.tf-devices-row__item--phone {
  grid-area: phone;
  z-index: 3;
  max-width: clamp(200px, 34vw, 290px);
  justify-self: center;
}

.tf-devices-row__item--tablet {
  grid-area: tablet;
  z-index: 2;
  max-width: clamp(220px, 38vw, 310px);
  justify-self: start;
}

.tf-devices-row__label {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tf-text);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
}

.tf-devices-showcase__platforms {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: clamp(0.85rem, 2vw, 1.25rem) auto 0;
  padding: 0;
  list-style: none;
}

.tf-devices-showcase__platforms li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: 0.3rem 0.85rem;
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 719px) {
  .tf-devices-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.92fr);
    column-gap: 0.15rem;
    min-height: clamp(200px, 44vw, 280px);
    padding-inline: 0;
  }

  .tf-devices-row__visual {
    height: clamp(128px, 36vw, 188px);
  }

  .tf-devices-row__item--laptop {
    max-width: clamp(200px, 46vw, 272px);
  }

  .tf-devices-row__item--phone {
    max-width: clamp(158px, 36vw, 220px);
  }

  .tf-devices-row__item--tablet {
    max-width: clamp(142px, 38vw, 198px);
  }

  .tf-devices-row__item--tablet .tf-devices-row__visual img {
    transform: translateY(clamp(0.85rem, 3.2vw, 1.65rem)) scale(1.1);
    transform-origin: center bottom;
  }

  .tf-devices-row__item--tablet:hover .tf-devices-row__visual img {
    transform: translateY(calc(clamp(0.85rem, 3.2vw, 1.65rem) - 6px)) scale(1.1);
    transform-origin: center bottom;
  }
}

@media (max-width: 560px) {
  .tf-devices-showcase__ring {
    display: none;
  }
}

.tf-section--cinema-devices .tf-devices-overlap__hint {
  color: var(--tf-muted);
  max-width: 40rem;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) auto 0;
  text-align: center;
  line-height: 1.55;
}

/* Browser-Info Block unter den Geräten */
.tf-devices-browser-info {
  max-width: 640px;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  text-align: center;
}

.tf-devices-browser-info__title {
  font-family: var(--tf-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tf-text);
  margin: 0 0 0.5rem;
}

.tf-devices-browser-info__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--tf-muted);
  margin: 0 0 1rem;
}

.tf-devices-browser-info__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-devices-browser-info__list li {
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tf-text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
}
