:root {
  --bg: #fbfbf9;
  --panel: #ffffff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --text: #111827;
  --text-soft: #374151;
  --accent: #0ea5e9;
  --accent-2: #22c55e;
  --shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); min-height: 100vh; font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text-soft); line-height: 1.55; }

.page { max-width: 1160px; margin: 0 auto; padding: 24px 16px 48px; }

.hero { padding: 28px 0 8px; text-align: center; }
.hero-content { max-width: 760px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--text-soft); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(28px, 3vw, 40px); margin-top: 14px; color: var(--text); font-weight: 800; letter-spacing: -0.01em; }
.subtitle { margin-top: 10px; color: var(--muted); font-size: 16px; }
.sub-hint-centered { margin-top: 12px; font-size: 13px; color: var(--muted); }

.section-title { margin-top: 28px; text-align: center; }
.section-title h2 { color: var(--text); font-size: 24px; margin-bottom: 4px; }
.section-title p { color: var(--muted); }

.chat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }

.chat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.chat-card h3 { font-size: 16px; color: var(--text); }

.chat-window { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.msg { max-width: 92%; display: flex; flex-direction: column; gap: 4px; }
.msg.bot { align-self: flex-start; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 10px 10px 10px 6px; padding: 8px 10px; font-size: 13px; }
.msg.user { align-self: flex-end; background: #eef9ff; border: 1px solid #cfe9fb; border-radius: 10px 10px 6px 10px; padding: 8px 10px; font-size: 13px; }
.msg.success { border-left: 2px solid var(--accent); }
.msg.highlight { background: #f9fafb; border: 1px dashed var(--border); }
.time { font-size: 11px; color: #9ca3af; align-self: flex-end; }

.explain { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.explain h4 { font-size: 12px; margin-bottom: 6px; color: var(--text); }
.explain li { font-size: 12px; color: var(--muted); margin-left: 0; list-style: none; }
.explain ul { display: grid; gap: 4px; }

/* Embed Vorschau */
.embed-section { margin-top: 36px; }
.embed-header { text-align: center; margin-bottom: 16px; }
.embed-header h2 { color: var(--text); font-size: 22px; }
.embed-header .embed-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }

.embed-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: center; }
.mock-browser { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); background: #f5f6f7; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.address { margin-left: 8px; font-size: 12px; color: var(--muted); }
.mock-content { position: relative; padding: 18px; background: #ffffff; min-height: 300px; }

.mock-hero { height: 120px; background: linear-gradient(180deg, #f7fafc, #ffffff); border: 1px solid var(--border); border-radius: 12px; }
.mock-cards { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-card { height: 90px; border-radius: 10px; border: 1px solid var(--border); background: #fcfcfd; }

/* Launcher + Chat */
.launcher {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: linear-gradient(130deg, #22d3ee 0%, #38bdf8 90%);
  border: 1px solid #0ea5e9;
  color: #063048;
  font-size: 20px;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
  cursor: pointer;
}

.chat-float {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 300px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0; transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.chat-float.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-float-header { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 8px 10px; font-size: 12px; color: var(--text); font-weight: 600; }
.chat-float-body { padding: 8px 10px; display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.chatline { font-size: 12px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); }
.chatline.bot { background: #f3f4f6; }
.chatline.user { background: #eef9ff; border-color: #cfe9fb; justify-self: end; }
.chat-float-input { border-top: 1px solid var(--border); padding: 8px 10px; font-size: 12px; color: #9ca3af; }

/* Cursor-Animation */
.cursor {
  position: absolute;
  width: 16px; height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="24" viewBox="0 0 24 36"><path fill="%23000" d="M3 2l18 10-9 3 4 9-4 2-4-9-5 4z"/></svg>') no-repeat center / contain;
  left: 26px; top: 26px;
  pointer-events: none;
  opacity: 0.9;
  transform-origin: 10% 10%;
}
.cursor.click { animation: click .2s ease-out; }
@keyframes click {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.92) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.embed-copy h3 { color: var(--text); margin-bottom: 10px; }
.embed-copy ul { margin-left: 16px; display: grid; gap: 6px; }
.embed-copy li { color: var(--text-soft); }
.embed-copy .small { color: var(--muted); margin-top: 10px; font-size: 13px; }

/* Footer & Modal (hell) */
.footer-section { text-align: center; margin-top: 28px; padding: 18px 0 8px; }
.footer-section h2 { color: var(--text); }
.footer-section p { color: var(--muted); margin-top: 6px; margin-bottom: 10px; }

.primary-btn { background: linear-gradient(130deg, #22d3ee 0%, #38bdf8 90%); border: 1px solid #0ea5e9; color: #063048; padding: 10px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(14, 165, 233, 0.18); }

.foot { text-align: center; margin-top: 22px; font-size: 12px; color: var(--muted); }
.modal-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.35); display: none; place-items: center; z-index: 200; backdrop-filter: blur(2px); }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px 14px; width: min(560px, 95vw); box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.modal-header h3 { font-size: 18px; color: var(--text); }
.close-btn { background: #ffffff; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 18px; width: 34px; height: 34px; cursor: pointer; }
.modal-text { font-size: 13px; color: var(--muted); margin-top: 4px; }
.feature-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-radius: 12px; margin: 10px 0 14px; }
.feature-item { background: #fafafa; border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.feature-item p { font-size: 13px; color: var(--text); font-weight: 600; }
.check { font-size: 18px; color: var(--accent-2); line-height: 1; }

/* ===== Mobile-first Verbesserungen (nur Handy) ===== */
@media (max-width: 640px) {
  .embed-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mock-browser { border-radius: 16px; }
  .mock-content { min-height: 460px; padding: 12px; }
  .browser-bar { padding: 8px 10px; }
  .address { font-size: 11px; }
  .mock-hero { height: 150px; }
  .mock-card { height: 110px; }

  .launcher { width: 60px; height: 60px; right: 14px; bottom: 14px; font-size: 24px; }
  .chat-float { width: min(92vw, 420px); right: 8px; bottom: 8px; }
  .chat-float-header { font-size: 13px; padding: 10px 12px; }
  .chat-float-body { max-height: 300px; padding: 10px 12px; gap: 8px; }
  .chatline { font-size: 14px; padding: 8px 10px; }
  .chat-float-input { font-size: 13px; padding: 10px 12px; }

  .cursor { width: 20px; height: 30px; }

  .embed-copy h3 { font-size: 18px; }
  .embed-copy li, .embed-copy .small { font-size: 14px; }

  .embed-header h2 { font-size: 20px; }
  .embed-header .embed-sub { font-size: 13px; }
}

@media (max-width: 820px) {
  .embed-grid { grid-template-columns: 1fr; }
}
