/* oberland.ai — Instant-Demo "Claudia auf Ihrem Betrieb" */

#instant-demo { background: linear-gradient(180deg, var(--glacier-lightblue) 0%, var(--snow-white) 100%); }
#instant-demo .section-title .accent { color: var(--swiss-red); }

/* Kompakter Demo-Teaser auf der Startseite */
.demo-teaser-box {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: white; border: 1px solid var(--glacier-lightblue);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 44px 32px;
}
@media (max-width: 560px) { .demo-teaser-box { padding: 32px 20px; } }

/* Eigene Demo-Seite (demo.html) */
#demo-hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--snow-white) 0%, var(--glacier-lightblue) 100%); }
.demo-hero-title { text-align: center; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.12; color: var(--oberland-blue); font-weight: 800; margin: 8px auto 14px; max-width: 760px; }
.demo-hero-title .accent { color: var(--swiss-red); }
.demo-hero-lead { text-align: center; font-size: 17px; color: var(--mountain-gray); line-height: 1.6; max-width: 620px; margin: 0 auto 8px; }
#demo-hero .idemo-card { margin-top: 30px; }
#demo-how { padding: 56px 0; }
#demo-how .section-eyebrow, #demo-transparenz .section-eyebrow { text-align: left; }

.idemo-card {
  max-width: 680px;
  margin: 28px auto 0;
  background: white;
  border: 1px solid var(--glacier-lightblue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ---- Weiche / Tabs ---- */
.idemo-tabs { display: flex; border-bottom: 1px solid var(--glacier-lightblue); }
.idemo-tab {
  flex: 1; padding: 15px 12px; background: var(--snow-white);
  border: none; border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--mountain-gray);
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.idemo-tab:hover { color: var(--oberland-blue); }
.idemo-tab.active { color: var(--oberland-blue); background: white; border-bottom-color: var(--oberland-blue); }

.idemo-pane { padding: 26px 24px; }
.idemo-pane label { display: block; font-size: 13px; font-weight: 600; color: var(--rock-anthracite); margin-bottom: 7px; }
.idemo-pane input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--glacier-lightblue);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; color: var(--rock-anthracite);
  outline: none; transition: border-color .2s;
}
.idemo-pane input:focus { border-color: var(--oberland-blue); }

.idemo-url-row { display: flex; gap: 10px; }
.idemo-url-row input { flex: 1; }
.idemo-url-row .btn { white-space: nowrap; }

.idemo-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }

.idemo-hint { font-size: 12.5px; color: var(--mountain-gray); margin-top: 12px; }

.idemo-wobble { animation: idemoWobble .4s; border-color: var(--swiss-red) !important; }
@keyframes idemoWobble {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); } 75% { transform: translateX(5px); }
}

/* ---- Loader ---- */
#idemoLoading { padding: 54px 24px; text-align: center; }
.idemo-loader { display: inline-flex; gap: 8px; margin-bottom: 18px; }
.idemo-loader span {
  width: 12px; height: 12px; border-radius: 50%; background: var(--oberland-blue);
  animation: idemoPulse 1.1s infinite ease-in-out both;
}
.idemo-loader span:nth-child(1) { animation-delay: -.32s; }
.idemo-loader span:nth-child(2) { animation-delay: -.16s; }
@keyframes idemoPulse { 0%,80%,100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.idemo-loading-text { font-size: 16px; color: var(--rock-anthracite); font-weight: 500; }

/* ---- Chat ---- */
.idemo-chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--oberland-blue); color: white;
}
.idemo-chat-head strong { font-size: 15px; }
.idemo-chat-head span { font-size: 12px; opacity: .85; }
.idemo-chat-head .chat-demo-avatar { width: 38px; height: 38px; }
.idemo-restart {
  margin-left: auto; background: rgba(255,255,255,.15); color: white; border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 17px; cursor: pointer; line-height: 1;
  transition: background .2s;
}
.idemo-restart:hover { background: rgba(255,255,255,.3); }

.idemo-chat-body {
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  background: #f7fafc; height: 340px; overflow-y: auto;
}
.idemo-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.idemo-msg.user { align-self: flex-end; background: var(--oberland-blue); color: white; border-bottom-right-radius: 4px; }
.idemo-msg.bot { align-self: flex-start; background: white; color: var(--rock-anthracite); border: 1px solid var(--glacier-lightblue); border-bottom-left-radius: 4px; }

.idemo-nudge {
  align-self: stretch; margin-top: 6px; padding: 12px 14px;
  background: var(--glacier-lightblue); border-radius: 12px;
  font-size: 13px; color: var(--rock-anthracite); line-height: 1.5;
}
.idemo-nudge a { color: var(--oberland-blue); font-weight: 600; white-space: nowrap; }

/* Gelber Hintergrund-Hinweis (Live-Demo: was im Hintergrund läuft) */
.idemo-action {
  align-self: stretch; margin: 2px 0; padding: 9px 12px;
  display: flex; gap: 9px; align-items: flex-start;
  background: #FFF8E1; border: 1px solid #FBC02D; border-left: 3px solid #F9A825;
  border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: #6B5300;
}
.idemo-action strong { color: #8A6D00; }
.idemo-action-ico { flex-shrink: 0; font-size: 14px; line-height: 1.3; }

/* Einmaliger dezenter Demo-Hinweis oben im Chat */
.idemo-demohint {
  align-self: stretch; margin-bottom: 4px; padding: 8px 12px;
  background: rgba(249,168,37,0.10); border: 1px dashed #F9A825; border-radius: 10px;
  font-size: 11.5px; line-height: 1.4; color: #7a6200; text-align: center;
}

.idemo-typing { align-self: flex-start; display: flex; gap: 5px; padding: 12px 14px; background: white; border: 1px solid var(--glacier-lightblue); border-radius: 14px; }
.idemo-typing span { width: 8px; height: 8px; background: var(--mountain-gray); border-radius: 50%; animation: idemoTyping 1.2s infinite; }
.idemo-typing span:nth-child(2) { animation-delay: .2s; }
.idemo-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes idemoTyping { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.idemo-chat-input { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--glacier-lightblue); background: white; }
.idemo-chat-input input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--glacier-lightblue); border-radius: 100px;
  font-size: 14px; font-family: inherit; color: var(--rock-anthracite); outline: none; transition: border-color .2s;
}
.idemo-chat-input input:focus { border-color: var(--oberland-blue); }
.idemo-chat-input button {
  width: 42px; height: 42px; border: none; border-radius: 50%; background: var(--oberland-blue);
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s;
}
.idemo-chat-input button:hover { background: var(--swiss-red); }
.idemo-chat-input button:disabled { opacity: .5; cursor: default; }

/* ---- Fehler ---- */
#idemoError { padding: 40px 24px; text-align: center; }
#idemoError p { color: var(--rock-anthracite); margin-bottom: 18px; font-size: 15px; }

/* ---- Upsell unter der Karte ---- */
.idemo-upsell {
  max-width: 680px; margin: 18px auto 0; padding: 16px 20px; text-align: center;
  font-size: 14px; color: var(--mountain-gray); line-height: 1.55;
}
.idemo-upsell strong { color: var(--rock-anthracite); }
.idemo-upsell a { color: var(--oberland-blue); font-weight: 600; }

@media (max-width: 560px) {
  .idemo-url-row { flex-direction: column; }
  .idemo-url-row .btn { width: 100%; justify-content: center; }
  .idemo-chat-body { height: 300px; }
}
