/* Guided tour (?tour=1) — minimal dock, no page dimming */

@keyframes ng-tour-border-glow {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.88;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.55)) drop-shadow(0 0 10px rgba(167, 139, 250, 0.35));
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.95)) drop-shadow(0 0 18px rgba(196, 181, 253, 0.65));
  }
}

.ng-tour-dock {
  position: fixed;
  z-index: 10040;
  right: 1rem;
  bottom: 1rem;
  width: min(20.475rem, calc(100vw - 2rem));
  border-radius: 0.75rem;
  border: 2px solid #7c3aed;
  background: rgba(255, 255, 255, 0.98);
  color: #241538;
  font-size: 0.88rem;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(36, 21, 56, 0.12);
  overflow: visible;
  isolation: isolate;
}

/* Nur der Rahmen: Gradient-Ring + Glow (Mitte ausgespart) */
.ng-tour-dock::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(0.75rem + 2px);
  padding: 2px;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    #6d28d9 0%,
    #7c3aed 18%,
    #c4b5fd 42%,
    #a78bfa 58%,
    #7c3aed 82%,
    #6d28d9 100%
  );
  background-size: 220% 100%;
  animation: ng-tour-border-glow 2.6s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@media (prefers-reduced-motion: reduce) {
  .ng-tour-dock::before {
    animation: none;
    background-position: 50% 50%;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.65));
  }
}

.ng-tour-dock[hidden] {
  display: none !important;
}

.ng-tour-dock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem 0.25rem 0.7rem;
}

.ng-tour-dock__label {
  flex: 1;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(36, 21, 56, 0.7);
}

.ng-tour-dock__bar-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.1rem;
}

.ng-tour-dock__icon-btn {
  flex-shrink: 0;
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: rgba(36, 21, 56, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ng-tour-dock__icon-btn[data-tour-hint]::after {
  content: attr(data-tour-hint);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 2;
  padding: 0.28rem 0.45rem;
  border-radius: 0.35rem;
  background: #241538;
  color: #f4edff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.2rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.ng-tour-dock__icon-btn:hover::after,
.ng-tour-dock__icon-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.ng-tour-dock__icon-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #241538;
}

.ng-tour-dock__icon-btn:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}

.ng-tour-dock__icon-btn--close {
  font-size: 1.25rem;
  font-weight: 500;
}

.ng-tour-dock__icon-btn--close:hover {
  background: rgba(127, 29, 29, 0.1);
  color: #7f1d1d;
}

.ng-tour-dock__panel {
  padding: 0 0.85rem 0.425rem;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

.ng-tour-dock.is-collapsed .ng-tour-dock__panel {
  display: none;
}

.ng-tour-dock.is-collapsed {
  width: auto;
  max-width: min(20.475rem, calc(100vw - 2rem));
}

.ng-tour-dock__body {
  margin: 0.325rem 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(36, 21, 56, 0.78);
  white-space: pre-line;
}

.ng-tour-dock__body strong {
  font-weight: 700;
  color: #241538;
}

html.ng-tour-active .v2-pillar-nav__sub a {
  font-weight: 600;
  color: var(--text);
}

.ng-tour-dock__body a {
  color: #6d28d9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ng-tour-dock__body a:hover {
  color: #5b21b6;
}

.ng-tour-dock__body a:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  border-radius: 2px;
}

.ng-tour-dock__btn--slot-hidden {
  visibility: hidden;
  pointer-events: none;
}

[data-tour-id] {
  scroll-margin-top: 7rem;
}

.ng-tour-has-badge > .ng-tour-step-badge-wrap,
.ng-tour-resume > .ng-tour-resume-badge-wrap,
.ng-tour-resume > .ng-tour-end-badge-wrap {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 0.55rem;
  flex: 0 0 auto;
  align-self: flex-start;
  position: relative;
  z-index: 6;
}

.ng-tour-has-badge > .ng-tour-step-badge-wrap {
  pointer-events: none;
}

.ng-tour-step-badge {
  box-sizing: border-box;
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: #12081f;
  background-image: none;
  box-shadow:
    0 4px 14px rgba(12, 6, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  filter: none;
  pointer-events: none;
  user-select: none;
}

.ng-tour-resume-badge {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.78rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.2;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.ng-tour-resume-badge:hover {
  background: #1a0d2a;
  border-color: #fbbf24;
  box-shadow:
    0 6px 18px rgba(12, 6, 20, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.ng-tour-resume-badge:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

@media (max-width: 880px) {
  .ng-tour-has-badge > .ng-tour-step-badge-wrap,
  .ng-tour-resume > .ng-tour-resume-badge-wrap,
  .ng-tour-resume > .ng-tour-end-badge-wrap {
    margin-bottom: 0.45rem;
  }

  .ng-tour-step-badge {
    padding: 0.28rem 0.52rem;
    font-size: 0.72rem;
  }

  .ng-tour-resume-badge,
  .ng-tour-end-badge {
    padding: 0.68rem 1rem;
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

.ng-tour-dock__actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
}

.ng-tour-dock__actions [data-tour-action="back"] {
  justify-self: start;
}

.ng-tour-dock__actions [data-tour-action="jump"] {
  justify-self: center;
}

.ng-tour-dock__actions [data-tour-action="next"] {
  justify-self: end;
}

.ng-tour-dock__btn {
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: #fff;
  color: #241538;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ng-tour-dock__btn:hover {
  background: rgba(124, 58, 237, 0.08);
}

.ng-tour-dock__btn--primary {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.ng-tour-dock__btn--primary:hover {
  background: #6d28d9;
}

.ng-tour-dock__btn--ghost {
  border-color: transparent;
  background: transparent;
  font-weight: 500;
  color: rgba(36, 21, 56, 0.65);
}

.ng-tour-dock__dna {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
}

.ng-tour-dock__dna:hover {
  text-decoration: underline;
}

.ng-tour-dock__dna[hidden] {
  display: none !important;
}

/* Wiederverwendbar: <div data-ng-tour-resume-mount hidden></div> */
.ng-tour-resume {
  margin: 2.5rem 0 0;
}

.ng-tour-resume--bridge {
  margin: 0;
  width: min(100%, 40rem);
  display: flex;
  justify-content: center;
}

.ng-tour-resume--bridge .ng-tour-resume-badge-wrap,
.ng-tour-resume--bridge .ng-tour-end-badge-wrap {
  margin: 0;
}

.ng-tour-end-badge {
  white-space: normal;
  max-width: min(100%, 40rem);
  text-align: center;
}

.ng-tour-has-badge.v2-critical-rails__sticky {
  padding-top: 0.15rem;
}

.ng-tour-has-badge.v2-critical-rails__sticky > .ng-tour-step-badge-wrap {
  margin-bottom: 0.45rem;
}

.ng-tour-has-badge.v2-scrolly__sticky > .ng-tour-step-badge-wrap {
  margin: 0 0 0.55rem;
  padding-left: clamp(1rem, 3vw, 1.25rem);
  padding-right: clamp(1rem, 3vw, 1.25rem);
}

html.ng-tour-active .v2-entry-journey {
  display: none !important;
}

html.ng-tour-active [data-ng-tour-bridge-cta],
[data-ng-tour-bridge-cta][hidden] {
  display: none !important;
}

.ng-tour-scroll-hint {
  position: fixed;
  z-index: 10035;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.ng-tour-scroll-hint[hidden] {
  display: none !important;
}

.ng-tour-scroll-hint__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ng-tour-scroll-hint__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  animation: ng-tour-scroll-hint-bob 1.6s ease-in-out infinite;
}

@keyframes ng-tour-scroll-hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.22rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ng-tour-scroll-hint__icon {
    animation: none;
  }
}

@media (max-width: 880px) {
  .ng-tour-scroll-hint {
    bottom: 0.75rem;
    max-width: calc(100vw - 2rem);
  }

  .ng-tour-scroll-hint__btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
