/* ISMShield AI — tour.css
   Driver.js-Popover-Styling + Sticky-CTA-Bar
   Farben Navy/Gold, Schrift Almarai, 16px Popover-Radius, 50px Buttons.

   Driver.js-Klassen-Referenz:
     .driver-popover                       — Container
     .driver-popover-title                 — H1
     .driver-popover-description           — Text
     .driver-popover-progress-text         — "Schritt X von Y"
     .driver-popover-navigation-btns       — Button-Wrapper
     .driver-popover-prev-btn              — Zurück
     .driver-popover-next-btn              — Weiter / Done
     .driver-popover-close-btn             — Schliessen-X
*/

/* ── Custom Class für unsere Tour ─────────────────────────────────────────── */
.driver-popover.ismshield-tour-popover {
  background: var(--navy, #1B2A4A) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
  font-family: 'Almarai', sans-serif !important;
  padding: 1.4rem 1.4rem 1.1rem !important;
  max-width: 380px !important;
}

.ismshield-tour-popover .driver-popover-title {
  color: var(--gold2, #E0BE6E) !important;
  font-family: 'Almarai', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.25 !important;
}

.ismshield-tour-popover .driver-popover-description {
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: 'Almarai', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 300 !important;
  line-height: 1.55 !important;
  margin-bottom: 1rem !important;
}

.ismshield-tour-popover .driver-popover-progress-text {
  color: rgba(255, 255, 255, 0.45) !important;
  font-family: 'Almarai', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.ismshield-tour-popover .driver-popover-footer {
  margin-top: 0.6rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.6rem !important;
}

.ismshield-tour-popover .driver-popover-navigation-btns {
  display: flex !important;
  gap: 0.5rem !important;
}

.ismshield-tour-popover button.driver-popover-prev-btn,
.ismshield-tour-popover button.driver-popover-next-btn {
  font-family: 'Almarai', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border-radius: 50px !important;
  padding: 0.55rem 1.4rem !important;
  border: none !important;
  cursor: pointer !important;
  text-shadow: none !important;
  transition: background 0.2s, transform 0.15s !important;
}

.ismshield-tour-popover button.driver-popover-prev-btn {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.ismshield-tour-popover button.driver-popover-prev-btn:hover {
  border-color: var(--gold2, #E0BE6E) !important;
  color: var(--gold2, #E0BE6E) !important;
}

.ismshield-tour-popover button.driver-popover-next-btn {
  background: var(--gold, #C9A84C) !important;
  color: var(--navy, #1B2A4A) !important;
}

.ismshield-tour-popover button.driver-popover-next-btn:hover {
  background: var(--gold2, #E0BE6E) !important;
  transform: translateY(-1px) !important;
}

.ismshield-tour-popover button.driver-popover-close-btn {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  font-family: sans-serif !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 1 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: background 0.15s, color 0.15s !important;
}

.ismshield-tour-popover button.driver-popover-close-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Pfeil/Highlight-Border in Gold */
.ismshield-tour-popover .driver-popover-arrow-side-bottom.driver-popover-arrow,
.ismshield-tour-popover .driver-popover-arrow-side-top.driver-popover-arrow,
.ismshield-tour-popover .driver-popover-arrow-side-left.driver-popover-arrow,
.ismshield-tour-popover .driver-popover-arrow-side-right.driver-popover-arrow {
  border-color: rgba(201, 168, 76, 0.45) transparent transparent transparent !important;
}

/* Highlight-Box des fokussierten Elements */
.driver-active-element {
  outline: 2px solid var(--gold, #C9A84C) !important;
  outline-offset: 4px !important;
  border-radius: 8px !important;
}

/* ── Sticky CTA-Bar ───────────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--navy, #1B2A4A);
  border-top: 2px solid var(--gold, #C9A84C);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-family: 'Almarai', sans-serif;
  transform: translateY(100%);
  transition: transform 0.28s ease-out;
  pointer-events: none;
}

.sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta__btn {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sticky-cta__btn--primary {
  background: var(--gold, #C9A84C);
  color: var(--white, #fff);
}

.sticky-cta__btn--primary:hover {
  background: var(--gold2, #E0BE6E);
  transform: translateY(-1px);
}

.sticky-cta__btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.sticky-cta__btn--secondary:hover {
  border-color: var(--gold2, #E0BE6E);
  color: var(--gold2, #E0BE6E);
}

.sticky-cta__btn--tertiary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  padding: 0.55rem 0.6rem;
  font-size: 0.83rem;
}

.sticky-cta__btn--tertiary:hover {
  color: var(--gold2, #E0BE6E);
}

.sticky-cta__more {
  display: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.5rem 0.95rem;
  font-family: 'Almarai', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

.sticky-cta__more:hover {
  border-color: var(--gold2, #E0BE6E);
  color: var(--gold2, #E0BE6E);
}

/* Mobile: nur Primär-CTA + "Mehr"-Button, Sekundär+Tertiär einklappen */
@media (max-width: 768px) {
  .sticky-cta {
    padding: 0.6rem 0.9rem;
    gap: 0.5rem;
    justify-content: space-between;
  }
  .sticky-cta__btn--primary {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
  .sticky-cta__btn--secondary,
  .sticky-cta__btn--tertiary {
    display: none;
  }
  .sticky-cta__more {
    display: inline-flex;
    align-items: center;
  }
  .sticky-cta.expanded {
    flex-direction: column;
    align-items: stretch;
  }
  .sticky-cta.expanded .sticky-cta__btn--secondary,
  .sticky-cta.expanded .sticky-cta__btn--tertiary {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
  .sticky-cta.expanded .sticky-cta__more {
    align-self: flex-end;
  }
}

/* Print: Sticky-Bar verbergen */
@media print {
  .sticky-cta { display: none !important; }
  .ismshield-tour-popover { display: none !important; }
}

/* ── Modal: 15-Min Discovery Call (alle drei Seiten) ──────────────────────── */
/* Eigenständig mit Fallback-Farben, da tour.css extern geladen wird und
   die :root-Variablen nicht in jeder Page in identischem Set vorliegen. */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  font-family: 'Almarai', sans-serif;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border, #D4DCE8);
  flex-shrink: 0;
}
.modal-header strong { font-size: 1rem; color: var(--navy, #1B2A4A); }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted, #6B7280);
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: sans-serif;
}
.modal-close:hover { background: var(--light, #EEF3F8); color: var(--navy, #1B2A4A); }
.modal-body { padding: 2rem; text-align: center; }
.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy, #1B2A4A);
  margin-bottom: 0.4rem;
}
.modal-body > p {
  font-size: 0.9rem;
  color: var(--muted, #6B7280);
  margin-bottom: 1.5rem;
}
.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
  text-align: left;
}
.modal-detail-item {
  background: var(--light, #EEF3F8);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--navy, #1B2A4A);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.modal-detail-item span { font-size: 1.1rem; }
.modal-btn {
  display: block;
  background: var(--gold, #C9A84C);
  color: var(--navy, #1B2A4A);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 0.8rem;
  font-family: 'Almarai', sans-serif;
}
.modal-btn:hover {
  background: var(--gold2, #E0BE6E);
  transform: translateY(-1px);
}
.modal-note { font-size: 0.75rem; color: var(--muted, #6B7280); }
@media (max-width: 520px) {
  .modal-details { grid-template-columns: 1fr; }
}
