/* Klick-Demo: geführte Tour über aufgenommene EasyTender-Seiten (fiktive Daten). */
:root {
  --kd-blue: #005693;
  --kd-blue-dark: #00446f;
  --kd-ink: #0f1d2e;
  --kd-muted: #55657a;
  --kd-line: #e2e8f0;
  --kd-bar: #0b1a2c;
  --kd-dim: rgba(8, 20, 36, .58);
}
html.kd-on body { padding-bottom: 60px !important; }
html.kd-on, html.kd-on body { scroll-behavior: auto; }

.kd-spot {
  position: fixed; z-index: 2147483000; pointer-events: none; border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .95), 0 0 0 9999px var(--kd-dim);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.kd-spot.kd-click::after {
  content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 3px solid #38bdf8;
  animation: kd-pulse 1.6s ease-out infinite;
}
@keyframes kd-pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
.kd-dim { position: fixed; inset: 0; z-index: 2147482999; background: var(--kd-dim); }

.kd-bubble { position: fixed; z-index: 2147483001; transition: top .25s ease, left .25s ease; }
.kd-in {
  width: min(360px, calc(100vw - 32px)); box-sizing: border-box;
  background: #fff; color: var(--kd-ink); border-radius: 14px; padding: 18px 18px 14px;
  box-shadow: 0 18px 50px rgba(8, 20, 36, .35), 0 2px 6px rgba(8, 20, 36, .12);
  font: 14px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.kd-bubble.kd-center .kd-in { width: min(460px, calc(100vw - 32px)); padding: 26px 26px 18px; }
.kd-bubble .kd-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kd-blue); margin: 0 0 6px; }
.kd-bubble h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--kd-ink); text-wrap: balance; }
.kd-bubble.kd-center h3 { font-size: 22px; }
.kd-bubble p { margin: 0; color: #334155; }
.kd-bubble .kd-hint { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--kd-blue); display: flex; gap: 6px; align-items: center; }
.kd-bubble .kd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.kd-bubble .kd-count { font-size: 12px; color: var(--kd-muted); font-variant-numeric: tabular-nums; }
.kd-bubble .kd-btns { display: flex; gap: 8px; }
.kd-btn {
  appearance: none; border: 1px solid var(--kd-line); background: #fff; color: var(--kd-ink); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 9px; line-height: 1.2;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.kd-btn:hover { background: #f5f8fb; }
.kd-btn.kd-primary { background: var(--kd-blue); border-color: var(--kd-blue); color: #fff; }
.kd-btn.kd-primary:hover { background: var(--kd-blue-dark); }
.kd-btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.kd-bubble .kd-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kd-bubble .kd-cta .kd-btn { padding: 10px 16px; font-size: 14px; }
.kd-shake { animation: kd-shake .35s ease; }
@keyframes kd-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.kd-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483002; height: 60px; box-sizing: border-box;
  display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--kd-bar); color: #e2e8f0;
  font: 13px/1.3 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
}
.kd-bar .kd-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; }
.kd-bar .kd-badge i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.kd-bar .kd-badge small { font-weight: 600; color: #94a3b8; }
.kd-bar .kd-prog { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; min-width: 60px; }
.kd-bar .kd-prog b { display: block; height: 100%; background: #38bdf8; border-radius: 6px; transition: width .3s ease; }
.kd-bar .kd-actions { display: flex; gap: 8px; align-items: center; }
.kd-bar .kd-btn { background: transparent; color: #e2e8f0; border-color: rgba(255, 255, 255, .22); }
.kd-bar .kd-btn:hover { background: rgba(255, 255, 255, .08); }
.kd-bar .kd-btn.kd-primary { background: #fff; color: var(--kd-blue); border-color: #fff; }
.kd-bar .kd-btn.kd-primary:hover { background: #e6f1f9; }

/* Touch-Geräte: Aufnahme als verkleinerte Desktop-Ansicht (viewport 1280), Tour-Elemente zurückvergrössert */
html.kd-zoom .kd-in { zoom: var(--kd-z); width: 330px; }
html.kd-zoom .kd-bubble.kd-center .kd-in { width: 350px; }
html.kd-zoom .kd-bar { zoom: var(--kd-z); gap: 10px; padding: 0 10px; }
html.kd-zoom .kd-bar .kd-badge small, html.kd-zoom .kd-bar .kd-restart { display: none; }
html.kd-zoom.kd-on body { padding-bottom: calc(60px * var(--kd-z)) !important; }

@media (max-width: 760px) {
  .kd-bar { gap: 10px; padding: 0 10px; }
  .kd-bar .kd-badge small, .kd-bar .kd-restart { display: none; }
  .kd-bubble:not(.kd-center) { left: 10px !important; right: 10px; top: auto !important; bottom: 72px; }
  .kd-bubble:not(.kd-center) .kd-in { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .kd-spot, .kd-bubble, .kd-bar .kd-prog b { transition: none; }
  .kd-spot.kd-click::after, .kd-shake { animation: none; }
}
