/* Kligg Demo-Shops: Demo-Leiste, Abschlusskarte, Demo-Kasse, Quiz-Show und Hinweise. Ergänzt das Renderer-CSS. */

body.kd-demo {
  padding-top: 52px;
}
.kd-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgb(14 14 18 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font: 500 13px/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}
.kd-bar a {
  color: inherit;
  text-decoration: none;
}
.kd-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.kd-pill {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffd84d;
  color: #17150f;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kd-note {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgb(255 255 255 / 0.72);
}
.kd-back {
  flex: none;
  color: rgb(255 255 255 / 0.8) !important;
}
.kd-back:hover {
  color: #fff !important;
}
.kd-cta {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #17150f !important;
  font-weight: 700;
  transition: transform 150ms ease;
}
.kd-cta:hover {
  transform: translateY(-1px);
}
.kd-short {
  display: none;
}
@media (max-width: 720px) {
  .kd-note {
    display: none;
  }
  .kd-bar {
    gap: 10px;
    padding: 0 12px;
  }
  .kd-back {
    margin-left: auto;
  }
}
@media (max-width: 440px) {
  .kd-back {
    display: none;
  }
  .kd-cta {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .kd-long {
    display: none;
  }
  .kd-short {
    display: inline;
  }
}

/* Abschlusskarte am Seitenende (im Look der Seite) */
.kd-end {
  max-width: 560px;
  margin: 40px auto 28px;
  padding: 28px 24px;
  border-radius: var(--kr-radius-lg, 22px);
  background: color-mix(in srgb, var(--kr-text) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--kr-text) 14%, transparent);
  text-align: center;
  font-family: var(--kr-body-font), ui-sans-serif, system-ui, sans-serif;
  color: var(--kr-text);
}
.kd-end-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.kd-end h2 {
  margin: 0 0 10px;
  font-family: var(--kr-heading-font), ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.1;
}
.kd-end p {
  margin: 0 auto 18px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}
.kd-end-cta {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--kr-btn-bg);
  color: var(--kr-btn-text) !important;
  font-weight: 700;
  text-decoration: none;
}
.kd-end-more {
  display: block;
  margin-top: 14px;
  color: inherit !important;
  font-size: 14px;
  opacity: 0.75;
}

/* Hinweis im Kauf-Fenster */
.kd-flag {
  margin: 0 44px 12px 0;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff3b0;
  color: #5c4500;
  font: 600 12.5px/1.35 ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}

/* Demo-Kasse an Stelle von Stripe */
.kd-pay {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  color: #1a1a2e;
  border: 1px solid #e6e6ef;
  font: 400 14px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.kd-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.kd-pay-title {
  font-weight: 600;
}
.kd-pay-amount {
  font-size: 18px;
}
.kd-pay-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #50506a;
}
.kd-pay-field .kr-input {
  background: #fff;
  color: #1a1a2e;
  border: 1px solid #d9d9e3;
}
.kd-pay-field small {
  color: #8a8aa0;
}
.kd-card {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed #b9b9cc;
  background: #f7f7fb;
  color: #3b3b55;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.kd-pay .kd-pay-btn {
  background: #635bff;
  color: #fff;
  border-color: #635bff;
}
.kd-pay-note {
  margin: 0;
  font-size: 12.5px;
  color: #6b6b85;
}

/* Danke-Ansicht */
.kd-done {
  margin: 4px 0 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff3b0;
  color: #3d2f00;
  text-align: left;
  font: 400 14px/1.45 ui-sans-serif, system-ui, sans-serif;
}
.kd-done strong {
  display: block;
  margin-bottom: 4px;
}
.kd-done p {
  margin: 0 0 10px;
}
.kd-done-cta {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: inherit !important;
}
.kd-modal .kd-done-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--kr-text) !important;
}

/* Toast */
.kd-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: min(520px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 14px;
  background: #17150f;
  color: #fff;
  font: 500 14px/1.4 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 18px 50px -12px rgb(0 0 0 / 0.5);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.kd-toast-in {
  transform: translate(-50%, 0);
  opacity: 1;
}
.kd-toast-flag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffd84d;
  color: #17150f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Battle: +1 */
.kd-bump {
  display: inline-block;
  animation: kd-bump 600ms ease;
}
@keyframes kd-bump {
  30% {
    transform: scale(1.35);
  }
}

/* Live-Quiz-Show Proberunde */
.kd-quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
}
.kd-quiz-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ff3b5c;
  color: #fff;
  font-weight: 700;
}
.kd-quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: kd-pulse 1.2s ease infinite;
}
@keyframes kd-pulse {
  50% {
    opacity: 0.3;
  }
}
.kd-quiz-players {
  opacity: 0.7;
}
.kd-quiz-title {
  margin-bottom: 8px !important;
}
.kd-quiz-prize {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--kr-accent) 14%, transparent);
}
.kd-quiz-count {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 8px !important;
}
.kd-quiz-bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kr-text) 12%, transparent);
  overflow: hidden;
  margin-bottom: 16px;
}
.kd-quiz-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--kr-accent);
  transition: width 100ms linear;
}
.kd-quiz-q {
  margin-bottom: 16px !important;
}
.kd-quiz-options {
  display: grid;
  gap: 10px;
}
.kd-quiz-option {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--kr-text) 18%, transparent);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.kd-quiz-option:hover {
  border-color: var(--kr-accent);
}
.kd-quiz-option[data-state="right"] {
  border-color: #16a34a;
  background: rgb(22 163 74 / 0.15);
}
.kd-quiz-option[data-state="wrong"] {
  border-color: #dc2626;
  background: rgb(220 38 38 / 0.15);
}
.kd-quiz-end {
  margin-bottom: 16px;
}
.kd-quiz-end .kr-h2 {
  margin-bottom: 8px;
}
