/* =========================================================
   Higherd – UC05 demo page (/pi-demo-2026-UC05)
   Builds on uc06.css; only the screenshot tour is new here.
   ========================================================= */

/* ---------- Caption beside the screen ---------- */
.tour .uc-caption {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.tour .uc-caption__role {
  justify-self: start;
  margin-top: 0;
}

.tour__count {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C4B5FD;
}

.tour .uc-caption__line {
  margin: 0;
  line-height: 1.55;
  color: #CBD5E1;
}

/* Screen language switch: English (default) / Deutsch */
.tour__lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.tour__lang-label {
  margin-right: 0.25rem;
  font-size: 0.875rem;
  color: #94A3B8;
}

.tour__lang-btn {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #E2E8F0;
  cursor: pointer;
}

.tour__lang-btn:hover {
  border-color: #C4B5FD;
}

.tour__lang-btn[aria-pressed="true"] {
  border-color: #C4B5FD;
  background: #C4B5FD;
  color: #140F1F;
}

.tour__lang-btn:focus-visible {
  outline: 2px solid #C4B5FD;
  outline-offset: 2px;
}

/* Screens of the active chapter: one dot per screen, clickable */
.tour__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.tour__dots[hidden] {
  display: none;
}

.tour__dot {
  min-width: var(--tap);
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #E2E8F0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.tour__dot:hover {
  border-color: var(--color-white);
}

.tour__dot[aria-current="step"] {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-accent);
}

/* ---------- Screen ---------- */
.tour__stage {
  position: relative;
  min-width: 0;
}

/* Pannable on small screens: the German screen keeps a readable width */
.tour__frame {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #F8F9FA;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  -webkit-overflow-scrolling: touch;
}

.tour__frame:focus-visible {
  outline: 3px solid #C4B5FD;
  outline-offset: 3px;
}

.tour__frame img {
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
}

.tour__full {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
}

.tour__full:hover,
.tour__full:focus-visible {
  background: var(--color-accent);
}

.tour__full svg {
  width: 14px;
  height: 14px;
}

.tour__pan {
  margin: -0.75rem 0 0;
  font-size: 0.8125rem;
  color: #94A3B8;
}

/* ---------- Controls ---------- */
.tour__restart[disabled] {
  visibility: hidden;
}

.tour__note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #94A3B8;
}

@media (max-width: 639px) {
  /* Three buttons in one row: drop the labels' extra padding */
  .uc-tabs__nav {
    gap: 8px;
  }

  .uc-tabs__nav .uc-step-btn {
    padding: 0 0.875rem;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .tour__frame img {
    min-width: 0;
  }

  .tour__pan {
    display: none;
  }

  .uc-numbers--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour__dot {
    transition: none;
  }
}

/* Role: "Explore live demo" button with Gerda's photo.
   On click the photo slides to the right while its ring spins; the face stays upright. */
.uc-live-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.uc-live-wrap__hint {
  width: 22px;
  height: 22px;
  color: #FF8330;
}

.uc-live {
  --orb: 60px;
  --pad: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: calc(var(--orb) + var(--pad) * 2);
  padding: var(--pad) 1.5rem var(--pad) var(--pad);
  border-radius: 999px;
  background: linear-gradient(90deg, #2A0870 0%, #4A0FA8 38%, #7C12D2 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 131, 48, 0.85),
    0 0 18px rgba(255, 110, 90, 0.4),
    0 16px 32px -14px rgba(74, 15, 168, 0.7);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.uc-live:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1.5px rgba(255, 131, 48, 1),
    0 0 26px rgba(255, 110, 90, 0.55),
    0 20px 36px -14px rgba(74, 15, 168, 0.75);
}

.uc-live:focus-visible {
  outline: 3px solid #FF8330;
  outline-offset: 4px;
}

.uc-live__orb {
  position: relative;
  z-index: 1;
  flex: none;
  width: var(--orb);
  height: var(--orb);
  border-radius: 50%;
  background: #1E0657;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Spinning ring: thin orange circle, a band of ticks and a glowing dot */
.uc-live__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 131, 48, 0.9);
}

.uc-live__ring::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 196, 150, 0.95) 0deg 1.6deg, transparent 1.6deg 6deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)), conic-gradient(#000 0deg 130deg, transparent 130deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)), conic-gradient(#000 0deg 130deg, transparent 130deg);
  mask-composite: intersect;
}

.uc-live__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #FFB067;
  box-shadow: 0 0 8px 2px rgba(255, 131, 48, 0.9);
  transform: rotate(130deg) translateY(calc(var(--orb) / -2 + 1px));
}

.uc-live__face {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #A855F7;
}

.uc-live__divider {
  align-self: stretch;
  width: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.3);
  transition: opacity 250ms ease;
}

.uc-live__label,
.uc-live__arrow {
  transition: opacity 250ms ease;
}

.uc-live__arrow {
  width: 20px;
  height: 20px;
  margin-left: 0.25rem;
}

.uc-live:hover .uc-live__arrow {
  transform: translateX(3px);
}

/* Clicked: the orb travels to the right end, the ring turns, the text fades */
.uc-live.is-launching .uc-live__orb {
  transform: translateX(var(--travel, 0px));
}

.uc-live.is-launching .uc-live__ring {
  animation: uc-live-spin 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.uc-live.is-launching .uc-live__label,
.uc-live.is-launching .uc-live__arrow,
.uc-live.is-launching .uc-live__divider {
  opacity: 0;
}

@keyframes uc-live-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 639px) {
  .uc-live {
    --orb: 52px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-live,
  .uc-live__orb,
  .uc-live__label,
  .uc-live__arrow,
  .uc-live__divider {
    transition: none;
  }

  .uc-live.is-launching .uc-live__ring {
    animation: none;
  }
}

/* Hero photo gallery: large photo, small photos on the right swap it */
.uc-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 56rem;
  margin: 2.5rem auto 0;
}

.uc-gallery__stage {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.35);
}

.uc-gallery__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms ease;
}

.uc-gallery__stage img.is-loading {
  opacity: 0;
}

.uc-gallery__thumbs {
  display: grid;
  gap: 0.75rem;
}

.uc-gallery__thumb {
  display: block;
  width: 128px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 160ms ease, transform 160ms ease;
}

.uc-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-gallery__thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.uc-gallery__thumb[aria-pressed="true"] {
  opacity: 1;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.uc-gallery__thumb:focus-visible {
  opacity: 1;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 639px) {
  .uc-gallery {
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .uc-gallery__stage {
    border-radius: 18px;
  }

  .uc-gallery__thumbs {
    gap: 0.5rem;
  }

  .uc-gallery__thumb {
    width: 64px;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-gallery__stage img,
  .uc-gallery__thumb {
    transition: none;
  }
}

/* "One source. Two submission packages." on one line, second sentence in the logo orange */
.uc-center--wide {
  max-width: 64rem;
}

.uc-title__accent {
  color: #FF8330;
}

@media (min-width: 768px) {
  .uc-title--one-line {
    white-space: nowrap;
  }
}

/* Less empty space between the hero gallery and "The delivery goal" */
.uc-hero--gallery {
  padding-bottom: 2.5rem;
}

.uc-hero--gallery + .uc-section {
  padding-top: 2.5rem;
}

@media (max-width: 767px) {
  .uc-hero--gallery {
    padding-bottom: 1.5rem;
  }

  .uc-hero--gallery + .uc-section {
    padding-top: 1.5rem;
  }

  /* Phones: section headings centred */
  .uc-section .uc-title {
    text-align: center;
  }
}
