/* NAVO – geführte Touren: Spotlight, Hinweisblase, Willkommen, Tour-Listen */
.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 3500;
  pointer-events: none;
}
.tour-dim {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 40, 0.42);
  display: none;
}
.tour-hole {
  position: fixed;
  display: none;
  border-radius: 10px;
  box-shadow: 0 0 0 200vmax rgba(8, 18, 40, 0.42);
  outline: 2px solid var(--accent);
  outline-offset: 0;
  transition:
    left 0.18s ease,
    top 0.18s ease,
    width 0.18s ease,
    height 0.18s ease;
}
.tour-hole::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: tourPulse 1.8s ease-out infinite;
}
@keyframes tourPulse {
  0% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-hole {
    transition: none;
  }
  .tour-hole::after {
    animation: none;
  }
}
.tour-tip {
  position: fixed;
  pointer-events: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px -12px rgba(8, 18, 40, 0.45);
  padding: 12px 14px 12px;
  width: min(360px, calc(100vw - 16px));
  font-size: 14px;
}
.tour-tip.tg-center {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
}
.tour-tip.tg-dock {
  right: 18px;
  bottom: 18px;
  left: auto !important;
  top: auto !important;
}
.tour-tip.tg-float::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  transform: rotate(45deg);
}
.tour-tip.tg-float[data-pos='below']::before {
  top: -7px;
  left: calc(var(--ax) - 6px);
  border-right: 0;
  border-bottom: 0;
}
.tour-tip.tg-float[data-pos='above']::before {
  bottom: -7px;
  left: calc(var(--ax) - 6px);
  border-left: 0;
  border-top: 0;
}
.tour-tip.tg-float[data-pos='right']::before {
  left: -7px;
  top: calc(var(--ay) - 6px);
  border-right: 0;
  border-top: 0;
}
.tour-tip.tg-float[data-pos='left']::before {
  right: -7px;
  top: calc(var(--ay) - 6px);
  border-left: 0;
  border-bottom: 0;
}
.tour-tip.tg-bar {
  left: 0 !important;
  right: 0;
  top: auto !important;
  bottom: 0;
  width: auto;
  border-radius: 16px 16px 0 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.tour-tip.tg-bar.tg-top {
  top: 0 !important;
  bottom: auto;
  border-radius: 0 0 16px 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}
.tour-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.tour-n {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-x {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: inline-flex;
}
.tour-x:hover {
  background: var(--panel-2);
  color: var(--text);
}
.tour-t {
  display: block;
  font-size: 15px;
  margin: 2px 0 4px;
}
.tour-tip p {
  margin: 0 0 8px;
  line-height: 1.45;
}
.tour-hint {
  font-size: 12.5px;
  color: var(--accent);
  margin: -2px 0 8px;
}
.tour-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tour-btns .spacer {
  flex: 1;
}
.tour-btns .pulse {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Willkommen (Einführung nach dem ersten Login) */
.tour-welcome {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 75;
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px 10px;
  box-shadow: 0 18px 50px -14px rgba(8, 18, 40, 0.4);
}
.tour-welcome p {
  margin: 6px 0 10px;
}
.tour-wh {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-wh b {
  flex: 1;
  font-size: 15px;
}
.tour-wh .ic {
  color: var(--accent);
}
.tour-prog {
  margin: 0 0 10px;
}
.tour-prog .setup-bar {
  margin: 6px 0 0;
  height: 6px;
}
.tour-never {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0 2px;
  text-decoration: underline;
}
.tour-welcome-small {
  opacity: 0.96;
}
body:has(.ai-panel) .tour-welcome,
body:has(#helpDrawer) .tour-welcome {
  display: none;
}
@media (max-width: 720px) {
  .tour-welcome {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}
/* Tour-Listen (Hilfe-Center, NAVO AI) */
.tour-help {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  margin: 0 0 12px;
  background: var(--panel-2);
}
.tour-help-h {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 2px 4px 6px;
}
.tour-help-h .ic {
  color: var(--accent);
}
.tour-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.tour-row:hover {
  background: var(--panel);
}
.tour-row > .ic {
  flex: none;
  color: var(--accent);
}
.tour-row > span:not(.tour-done) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.tour-row .muted {
  white-space: normal;
}
.tour-done {
  color: var(--ok);
  display: inline-flex;
}
.tour-more summary {
  cursor: pointer;
  padding: 6px 8px;
  color: var(--accent);
}
.tour-introopt {
  padding: 6px 8px 2px;
}
.tour-chip .ic {
  width: 14px;
  height: 14px;
}
.ai-guide {
  align-self: stretch;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel);
  font-size: 13px;
}
body.tour-on .toasts {
  z-index: 3600;
}
@media (max-width: 720px) {
  body.tour-on .toasts {
    bottom: auto;
    top: calc(10px + env(safe-area-inset-top, 0px));
  }
}
