/* Bark, Boney's */
/* Konfigurator – gefuehrte Anleitung (scripts/konfig-tour.js) */

/* ── Hilfe-Button ── */
.kt-help {
  font-family: var(--font-mono, monospace); text-transform: uppercase; letter-spacing: 1px;
  background: rgba(5, 6, 10, .92); color: #00f0ff; border: 1px solid rgba(0, 240, 255, .55);
  border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: .68rem; line-height: 1;
}
.kt-help span { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(0, 240, 255, .18); font-weight: 700; }
.kt-help:hover { background: rgba(0, 240, 255, .16); }
.kt-help--panel { align-self: flex-start; margin: auto 14px 14px; box-shadow: 0 0 14px rgba(0, 240, 255, .25); padding: 9px 15px; font-size: .72rem; }
.kt-help--bar { display: none; margin-left: 8px; padding: 4px 9px; font-size: .55rem; vertical-align: middle; }
@media (max-width: 900px) {
  .kt-help--panel { display: none; }
  .kt-help--bar { display: inline-flex; }
}
.kt-help--pulse { animation: ktHelpPulse 1.2s ease-in-out infinite; }
@keyframes ktHelpPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, .6); } 50% { box-shadow: 0 0 0 9px rgba(0, 240, 255, 0); } }

/* ── Pulsierender Glow auf dem erklaerten Bereich ── */
.kt-hl { animation: ktPulse 1.4s ease-in-out infinite; outline: 2px solid rgb(var(--fx-red, 255 40 40) / .9); outline-offset: 3px; border-radius: 6px; position: relative; }
@keyframes ktPulse {
  0%, 100% { box-shadow: 0 0 6px 1px rgb(var(--fx-red, 255 40 40) / .55), inset 0 0 8px rgb(var(--fx-red, 255 40 40) / .18); outline-color: rgb(var(--fx-red, 255 40 40) / .9); }
  50%      { box-shadow: 0 0 22px 6px rgb(var(--fx-red, 255 40 40) / .85), inset 0 0 16px rgb(var(--fx-red, 255 40 40) / .35); outline-color: rgb(var(--fx-red, 255 40 40) / .35); }
}

/* ── Sprechblase ── */
.kt-bubble {
  position: fixed; z-index: 20000; width: min(340px, calc(100vw - 16px)); box-sizing: border-box;
  background: rgba(8, 12, 20, .97); color: #e8f3ff; border: 1px solid rgba(0, 240, 255, .6);
  border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 10px 36px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 240, 255, .2);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; font-size: .9rem; line-height: 1.45;
}
.kt-bubble.kt-show { opacity: 1; pointer-events: auto; }
.kt-bubble::after {
  content: ''; position: absolute; width: 14px; height: 14px; background: rgba(8, 12, 20, .97);
  border: 1px solid rgba(0, 240, 255, .6); transform: rotate(45deg); display: none;
}
.kt-bubble[data-side="left"]::after   { display: block; left: -8px;  top: calc(var(--kt-cy, 30px) - 7px); border-right: 0; border-top: 0; }
.kt-bubble[data-side="right"]::after  { display: block; right: -8px; top: calc(var(--kt-cy, 30px) - 7px); border-left: 0; border-bottom: 0; }
.kt-bubble[data-side="top"]::after    { display: block; top: -8px;   left: calc(var(--kt-cx, 30px) - 7px); border-right: 0; border-bottom: 0; }
.kt-bubble[data-side="bottom"]::after { display: block; bottom: -8px; left: calc(var(--kt-cx, 30px) - 7px); border-left: 0; border-top: 0; }
.kt-step { font-family: var(--font-mono, monospace); font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: #00f0ff; margin-bottom: 4px; }
.kt-title { font-family: var(--font-head, inherit); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; padding-right: 22px; }
.kt-text { color: #cfe0ef; }
.kt-hint { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(255, 60, 60, .14); border: 1px solid rgba(255, 90, 90, .45); color: #ffd9d9; font-size: .82rem; }
.kt-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.kt-btn {
  font-family: var(--font-mono, monospace); text-transform: uppercase; letter-spacing: 1px; font-size: .72rem;
  border-radius: 8px; padding: 9px 14px; cursor: pointer; min-height: 38px;
  border: 1px solid rgba(0, 240, 255, .5); background: transparent; color: #cfefff;
}
.kt-btn.kt-next { margin-left: auto; background: linear-gradient(135deg, rgba(0, 240, 255, .35), rgba(0, 190, 255, .2)); color: #fff; border-color: rgba(0, 240, 255, .8); }
.kt-btn[hidden] { display: none; }
.kt-close { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; background: transparent; border: 0; color: #9fb7c9; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.kt-close:hover { color: #fff; }
@media (max-width: 900px) {
  .kt-bubble { font-size: .84rem; padding: 11px 13px 10px; width: min(420px, calc(100vw - 16px)); }
  .kt-bubble::after { display: none !important; }
  .kt-title { font-size: .98rem; }
}

@media (prefers-reduced-motion: reduce) { .kt-hl, .kt-help--pulse { animation: none; } }
