/**
 * DealPilot V238.3 — Tour CSS
 *
 * V238.3 Aenderungen:
 * - .dp-tour-overlay nutzt clip-path (von JS gesetzt) fuer echtes Loch
 * - Spotlight ist nur noch Gold-Border (kein box-shadow-Trick mehr)
 * - Element im Loch ist gestochen scharf (kein Blur, kein Dim)
 */

body.dp-tour-active {
  overflow: hidden;
}

/* ─── Overlay (mit clip-path-Loch, JS-gesteuert) ─────────────────────── */
.dp-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(15, 12, 8, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: dp-tour-overlay-in 0.3s ease;
  /* clip-path wird von JS dynamisch gesetzt */
  transition: clip-path 0.3s ease;
}

@keyframes dp-tour-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Spotlight (nur Gold-Border + Glow ums Loch, kein box-shadow-Trick) */
.dp-tour-spotlight {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  border-radius: 12px;
  border: 2px solid #C9A84C;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.3),
    0 0 60px rgba(201,168,76,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
  animation: dp-tour-pulse 2.4s ease-in-out infinite;
}

@keyframes dp-tour-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.3),
      0 0 60px rgba(201,168,76,0.55),
      inset 0 0 0 1px rgba(255,255,255,0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.3),
      0 0 100px rgba(201,168,76,0.75),
      inset 0 0 0 1px rgba(255,255,255,0.15);
  }
}

/* ─── Bubble (Dark Premium-Glass) ──────────────────────────────────────── */
.dp-tour-bubble {
  position: fixed;
  z-index: 100000;
  width: 460px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15,12,5,1) 0%, rgba(8,6,4,1) 100%),
    #050404;
  border: 1.5px solid #C9A84C;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(201,168,76,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
  color: #e8e2d4;
  font-family: -apple-system, BlinkMacSystemFont, "DM Sans", "Inter", "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  animation: dp-tour-bubble-in 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transition: top 0.3s ease, left 0.3s ease;
}

.dp-tour-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse 400px 150px at 50% 0%,
    rgba(201,168,76,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.dp-tour-bubble > * {
  position: relative;
  z-index: 1;
}

@keyframes dp-tour-bubble-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Close-Button ──────────────────────────────────────────────────────── */
.dp-tour-close-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.dp-tour-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.dp-tour-close:hover {
  background: rgba(184,98,92,0.2);
  border-color: rgba(184,98,92,0.4);
  color: #e07a82;
}
.dp-tour-close svg {
  width: 16px;
  height: 16px;
}

/* ─── Header ──────────────────────────────────────────────────────────── */
.dp-tour-head {
  padding: 28px 30px 18px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  background: linear-gradient(180deg, rgba(201,168,76,0.06), transparent);
}

.dp-tour-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 12px;
}

.dp-tour-eyebrow-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 6px;
  color: #C9A84C;
}
.dp-tour-eyebrow-ic svg {
  width: 13px;
  height: 13px;
  display: block;
}

.dp-tour-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.dp-tour-body {
  padding: 18px 30px 12px;
}

.dp-tour-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

.dp-tour-text strong {
  color: #fff;
  font-weight: 600;
}

.dp-tour-text em {
  color: #C9A84C;
  font-style: normal;
  font-weight: 500;
}

.dp-tour-text-short {
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
}

.dp-tour-more-toggle {
  margin-top: 14px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  color: #C9A84C;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}
.dp-tour-more-toggle:hover {
  background: rgba(201,168,76,0.1);
  border-color: #C9A84C;
}
.dp-tour-more-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.25s;
}
.dp-tour-more-toggle.dp-tour-expanded .dp-tour-more-chevron {
  transform: rotate(180deg);
}

.dp-tour-text-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,168,76,0.15);
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  animation: dp-tour-expand-in 0.3s ease;
}

@keyframes dp-tour-expand-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dp-tour-progress {
  padding: 0 30px 14px;
}
.dp-tour-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.dp-tour-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #E8C964);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.dp-tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
  flex-wrap: wrap;
}

.dp-tour-nav {
  display: flex;
  gap: 8px;
}

.dp-tour-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dp-tour-btn svg {
  width: 14px;
  height: 14px;
}

.dp-tour-btn-primary {
  background: linear-gradient(135deg, #C9A84C, #b8964a);
  color: #1a1612;
  box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}
.dp-tour-btn-primary:hover {
  background: linear-gradient(135deg, #E8C964, #C9A84C);
  box-shadow: 0 4px 14px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}

.dp-tour-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}
.dp-tour-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(201,168,76,0.3);
}

.dp-tour-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.45);
  padding: 9px 10px;
  font-size: 12px;
}
.dp-tour-btn-ghost:hover {
  color: #C9A84C;
}

@media (max-width: 1400px) {
  .dp-tour-bubble {
    width: 400px;
  }
  .dp-tour-head { padding: 24px 26px 14px; }
  .dp-tour-body { padding: 16px 26px 10px; }
  .dp-tour-progress { padding: 0 26px 12px; }
  .dp-tour-foot { padding: 14px 26px 18px; }
  .dp-tour-title { font-size: 25px; }
}

@media (max-width: 768px) {
  .dp-tour-bubble {
    width: calc(100vw - 24px);
    max-width: 420px;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .dp-tour-spotlight {
    display: none !important;
  }
  .dp-tour-overlay {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  .dp-tour-title {
    font-size: 24px;
  }
  .dp-tour-head {
    padding: 24px 22px 16px;
  }
  .dp-tour-body {
    padding: 16px 22px 12px;
  }
  .dp-tour-foot {
    padding: 14px 22px 18px;
  }
}

.dp-tour-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,168,76,0.4);
  color: #C9A84C;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-right: 10px;
}
.dp-tour-restart-btn:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.15));
  color: #E8C964;
  border-color: #E8C964;
}

/* V239.6: Tool-Tip-Mode Toggle-Buttons in Tour-Bubble */
.dp-tour-toggle-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 8px;
}
.dp-tour-toggle-btn {
  flex: 1;
  background: rgba(40, 32, 18, 0.6);
  border: 1.5px solid rgba(201, 168, 76, 0.3);
  color: rgba(232, 220, 190, 0.85);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.dp-tour-toggle-btn:hover {
  background: rgba(60, 48, 24, 0.8);
  border-color: rgba(201, 168, 76, 0.55);
  color: #E8C964;
}
.dp-tour-toggle-btn.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.85), rgba(180, 144, 58, 0.85));
  border-color: #E8C964;
  color: #1a140a;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}
.dp-tour-toggle-status {
  font-size: 12px;
  color: rgba(232, 220, 190, 0.7);
  margin-top: 6px;
  padding: 6px 0;
  text-align: center;
}
.dp-tour-toggle-status strong {
  color: #E8C964;
}
