/* ============================================
   Custom styles for Dr. Veit Königswieser site
   Tailwind CDN handles the rest.
   ============================================ */

:root {
  --brand: #0078b5;
  --brand-dark: #006193;
  --brand-deep: #0e5351;
  --brand-mint: #1ee3cf;
  --brand-soft: #aadddd;
  --alarm: #930000;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Subtle gradient on the hero blurs */
.bg-blob {
  filter: blur(48px);
  opacity: .55;
}

/* Bot: chat bubble animation */
@keyframes bot-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bot-msg { animation: bot-pop .25s ease-out both; }

/* Caret blink for the typing indicator */
@keyframes blink-caret { 0%,100%{opacity:0} 50%{opacity:1} }
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0078b5; display: inline-block;
  animation: bot-pop 1s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }

/* Option cards in the bot */
.bot-option {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 12px 14px;
  font-weight: 500; color: #0f172a;
  transition: all .15s ease;
  position: relative;
}
.bot-option:hover {
  border-color: #0078b5; background: #f0faff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,120,181,.10);
}
.bot-option .opt-key {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: #eef9fb; color: #006193;
  font-size: 11px; font-weight: 700; margin-right: 10px;
}
.bot-option:hover .opt-key { background:#0078b5; color:white; }

.bot-option-urgent {
  background: #fff5f5; border-color: #fecaca; color: #930000;
}
.bot-option-urgent:hover {
  background: #fee2e2; border-color: #f87171; color: #7f1d1d;
}
.bot-option-urgent .opt-key {
  background: #930000; color: #fff;
}
.bot-option-urgent:hover .opt-key { background:#7f1d1d; }

/* Progress bar for question N / 5 */
.bot-progress {
  display:flex; gap:4px;
}
.bot-progress span {
  flex:1; height: 4px; border-radius: 4px; background: #e2e8f0;
}
.bot-progress span.done { background: #0078b5; }
.bot-progress span.current { background: #1ee3cf; }

/* Outcome card */
.outcome-card {
  border-radius: 18px;
  padding: 18px;
  display:flex; flex-direction:column; gap:12px;
}
.outcome-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 18px;
}
.outcome-card p { font-size: 14px; }
.outcome-urgent { background: linear-gradient(135deg, #930000 0%, #b91c1c 100%); color: #fff; }
.outcome-week   { background: linear-gradient(135deg, #006193 0%, #0078b5 100%); color: #fff; }
.outcome-home   { background: linear-gradient(135deg, #0e5351 0%, #1ee3cf 100%); color: #fff; }

.outcome-card .action-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.95); color: #0f172a;
  transition: transform .15s ease;
}
.outcome-card .action-btn:hover { transform: translateY(-1px); }

/* Care sheet modal */
.care-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center; padding: 20px;
  animation: bot-pop .15s ease-out;
}
.care-sheet {
  background: #fff; border-radius: 22px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow:auto; box-shadow: 0 30px 80px rgba(0,0,0,.30);
  animation: bot-pop .2s ease-out;
}
.care-sheet header {
  padding: 18px 22px; border-bottom: 1px solid #e2e8f0;
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; background:#fff; border-radius: 22px 22px 0 0;
}
.care-sheet .body { padding: 18px 22px; }
.care-sheet ol { list-style: none; counter-reset: step; }
.care-sheet ol li {
  counter-increment: step;
  position: relative; padding: 10px 0 10px 38px;
  border-bottom: 1px dashed #e2e8f0; font-size: 14px; color: #1e293b;
}
.care-sheet ol li:last-child { border-bottom: 0; }
.care-sheet ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #0e5351; color: #1ee3cf;
  display:grid; place-items:center; font-weight: 700; font-size: 12px;
}

/* Slot picker */
.slot-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.slot {
  border:1px solid #e2e8f0; border-radius: 10px; padding: 10px;
  text-align:center; font-size: 13px; font-weight: 600; color: #006193;
  background: #fff; cursor: pointer; transition: all .15s ease;
}
.slot:hover { background:#f0faff; border-color:#0078b5; }
.slot small { display:block; font-weight:500; color:#64748b; font-size:11px; margin-top:2px; }

/* Brand mark for header on mobile */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}

/* Form inputs using Tailwind defaults; we just smooth the focus ring */
input:focus, textarea:focus, select:focus { outline: none; }

/* Footer DocFinder logo */
.docfinder-badge {
  display:inline-block; padding: 2px 6px; border-radius: 4px;
  background: #0078b5; color: #fff; font-size: 10px;
  font-weight: 700; letter-spacing: .12em;
}

/* Language toggle: handled via data-active attribute */
.lang-btn[data-active="true"] { background:#0078b5; color:#fff; }
.lang-btn[data-active="false"] { background: transparent; color: inherit; }
header .lang-btn[data-active="false"] { color:#475569; }
.bot-header-pill .lang-btn[data-active="false"] { color: rgba(255,255,255,.8); }
