/* ============================================================
   Praxishub – Shared Design System (site.css)
   Aus index.html extrahiert. Editorial, ruhig, etabliert.
   ============================================================ */

/* ============================================================
   Praxishub – Marketing-Site
   Richtung: editorial, ruhig, etabliert. Eine Akzentfarbe,
   Hairlines statt Karten, Serif-Display statt Icon-Kacheln.
   ============================================================ */

:root {
  --paper: #FBFAF7;
  --paper-2: #F4F2EC;
  --ink: #14161B;
  --ink-2: #50545E;
  --ink-3: #8A8E98;
  --hair: #E3E0D6;
  --hair-dark: #2A2D35;
  --accent: #4F46E5;
  --accent-deep: #3730A3;
  --accent-soft: #EEF0FB;
  --green: #1E7F4F;
  --green-soft: #E7F3EC;
  --amber: #B45309;
  --analytics: #2E4A6E;
  --analytics-deep: #243B58;
  --analytics-soft: #E6EEF7;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Scroll-Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #C9CBD3;
  font-size: 13.5px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: .01em;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: #A5B4FC; font-weight: 600; margin-left: 10px; white-space: nowrap; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
header.site.scrolled { border-bottom-color: var(--hair); }
.nav {
  display: flex; align-items: center; gap: 36px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand .brand-word { height: 31px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-left: 8px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav-right .login:hover { color: var(--accent-deep); }

/* Mobile-Menü */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s;
}
header.site.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
header.site.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-panel { display: contents; }

/* Akzentfarben je Bereich (auch von Modul-/Feature-Seiten genutzt) */
.acc-win { --acc: var(--accent); --acc-deep: var(--accent-deep); --acc-soft: var(--accent-soft); }
.acc-bind { --acc: var(--green); --acc-deep: #186b41; --acc-soft: var(--green-soft); }
.acc-mgmt { --acc: var(--amber); --acc-deep: #8a3f07; --acc-soft: #FBF1E3; }
.acc-analytics { --acc: #0F766E; --acc-deep: #0c5e57; --acc-soft: #E2F0EE; }
.acc-care { --acc: #BE185D; --acc-deep: #9D174D; --acc-soft: #FBEAF1; }

/* ---- Dropdown-Navigation: Module / Funktionen ---- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  color: var(--ink-2); cursor: pointer; padding: 0;
}
.nav-trigger:hover,
.nav-item:hover .nav-trigger,
.nav-trigger[aria-expanded="true"] { color: var(--ink); }
.nav-chev { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.nav-item:hover .nav-chev,
.nav-trigger[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-link-flat { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-link-flat:hover { color: var(--ink); }
.nav-links { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 16px); left: -14px;
  padding: 0;
  background: #fff; border: 1px solid var(--hair); border-radius: 18px;
  box-shadow: 0 34px 70px -30px rgba(20,22,27,.34);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
.nav-item:focus-within .nav-menu,
.nav-menu.open { opacity: 1; visibility: visible; transform: none; }

/* ---- Mega-Menü: wechselnde Vorschau + Liste ---- */
.nav-item.has-mega { position: static; }
.nav-mega {
  left: 0;
  width: min(920px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: 312px 1fr;
  overflow: hidden;
}
.mega-preview {
  position: relative; min-height: 360px;
  border-right: 1px solid var(--hair);
  background:
    radial-gradient(130% 90% at 18% 0%, color-mix(in srgb, var(--acc, var(--accent)) 13%, #fff), transparent 62%),
    var(--paper-2);
  transition: background .35s var(--ease);
}
.mega-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.mega-card.active { opacity: 1; transform: none; pointer-events: auto; }
.mega-card.active:hover .mega-viz { box-shadow: 0 22px 48px -22px rgba(20,22,27,.4); }
.mega-card.active:hover .mega-go svg { transform: translateX(3px); }
.mega-viz {
  flex: 0 0 auto; min-height: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--hair); border-radius: 13px;
  box-shadow: 0 18px 40px -24px rgba(20,22,27,.3);
  padding: 15px; display: flex; flex-direction: column; gap: 8px;
}
.mega-cap h4 { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.mega-cap p { font-size: 12.8px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.mega-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--acc-deep, var(--accent-deep)); }
.mega-go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s; }
.mega-card.active:hover .mega-go svg { transform: translateX(3px); }

/* Modul-Mega: Vorschau-Panel + zweispaltige Liste (Icon + Titel + Erklärung) */
.mega-list { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: 6px; align-content: start; }
/* Schmales Modul-Menü (wenige Funktionen, z. B. Patientengewinnung): eine Spalte + schmaleres Panel */
.nav-mega-sm { width: min(580px, calc(100vw - 40px)); grid-template-columns: 280px 1fr; }
.nav-mega-sm .mega-list { grid-template-columns: 1fr; gap: 4px; padding: 16px; align-content: center; }
.mega-item {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px;
  align-items: center;
  padding: 10px 14px; border-radius: 12px;
  transition: background .15s;
}
.mega-item:hover, .mega-item.active { background: var(--paper-2); }
.mega-ic {
  align-self: center;
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-soft, var(--accent-soft)); color: var(--acc-deep, var(--accent-deep));
  transition: transform .18s var(--ease);
}
.mega-item:hover .mega-ic, .mega-item.active .mega-ic { transform: scale(1.06); }
.mega-ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mega-tx { grid-column: 2; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega-t { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.25; transition: color .15s; }
.mega-item:hover .mega-t, .mega-item.active .mega-t { color: var(--acc-deep, var(--accent-deep)); }
.mega-d { font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.3; }
/* Modulübersicht-Eintrag: volle Breite über den beiden Sektionen, dezent abgesetzt */
.mega-item-ov { grid-column: 1 / -1; border-bottom: 1px solid var(--hair); border-radius: 0; margin-bottom: 6px; padding-bottom: 14px; }
/* Zwei Sektionen: „Funktionen" (Indigo) und „Kampagnen" (Grün), durch Linie getrennt */
.mega-sec { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-sec.acc-win { padding-right: 28px; }
.mega-sec.acc-bind { padding-left: 28px; border-left: 1px solid var(--hair); }
.mega-sec-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 14px 6px; }
.mega-sec-h span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-deep, var(--accent-deep)); }
.mega-sec-h em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.mega-item-lg { padding-top: 9px; padding-bottom: 9px; }

/* Mini-Vorschau-Grafiken */
.mega-viz { font-size: 11.5px; color: var(--ink-2); }
.mv-chip { display: flex; align-items: center; gap: 7px; border: 1px solid var(--hair); border-radius: 99px; padding: 6px 11px; color: var(--ink-3); }
.mv-chip svg { width: 12px; height: 12px; stroke: var(--ink-3); fill: none; stroke-width: 2; flex-shrink: 0; }
.mv-res { padding: 7px 2px; border-bottom: 1px dashed #ECEAE2; }
.mv-res:last-child { border-bottom: none; }
.mv-res b { display: block; color: var(--ink); font-size: 12.5px; }
.mv-res span { color: var(--ink-3); }
.mv-res.mv-top { background: var(--acc-soft, var(--accent-soft)); margin: 2px 0 0; padding: 8px 10px; border-radius: 9px; border-bottom: none; }
.mv-res.mv-top b { color: var(--acc-deep, var(--accent-deep)); }
.mv-bubble { max-width: 90%; padding: 8px 11px; border-radius: 13px; line-height: 1.4; }
.mv-bubble.in { background: var(--green-soft); border-radius: 13px 13px 13px 4px; }
.mv-bubble.out { background: #fff; border: 1px solid #ECEAE2; align-self: flex-end; border-radius: 13px 13px 4px 13px; }
.mv-note { margin-top: auto; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--acc-deep, var(--accent-deep)); }
.mv-kpi b { font-family: var(--serif); font-weight: 550; font-size: 30px; letter-spacing: -.02em; color: var(--ink); display: block; line-height: 1; }
.mv-kpi span { color: var(--ink-3); }
.mv-spark { width: 100%; height: 54px; margin-top: auto; color: var(--acc, var(--accent)); display: block; }
.mv-chips { display: flex; gap: 6px; }
.mv-chips span { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; border: 1px solid var(--hair); }
.mv-chips .wa { background: var(--green-soft); color: var(--green); border-color: #CFE8D8; }
.mv-chips .sms { background: #F3E8FF; color: #6D28D9; border-color: #E4D4F7; }
.mv-chips .mail { background: var(--accent-soft); color: var(--accent-deep); border-color: #D4DCFA; }
.mv-statrow, .mv-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #F2F0E9; }
.mv-statrow:last-child, .mv-kv:last-child { border-bottom: none; }
.mv-statrow.off { opacity: .5; }
.mv-statrow em, .mv-kv em { font-style: normal; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 3px 9px; background: #F4F2EC; color: var(--ink-2); }
.mv-statrow em.ok, .mv-kv em.ok { background: var(--green-soft); color: var(--green); }
.mv-statrow em.sync, .mv-kv em.sync { background: var(--accent-soft); color: var(--accent-deep); }
.mv-kv span { color: var(--ink-3); }
.mv-kv b { font-weight: 600; color: var(--ink); }
.mv-kv b.warn { color: var(--amber); }
.mv-stars { color: #E8A33D; font-size: 18px; letter-spacing: 2px; }
.mv-rev { color: var(--ink-2); line-height: 1.45; font-size: 12px; }
.nav-close { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  padding: 11px 22px; border-radius: 8px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover { background: #fff !important; color: var(--accent); border-color: var(--accent) !important; }
.btn-ghost { border: 1px solid var(--hair); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { padding: 14px 28px; font-size: 16.5px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(79,70,229,.07), transparent 60%),
    radial-gradient(700px 380px at 8% 8%, rgba(30,127,79,.05), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent-deep); }
.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid #D4DCFA;
  border-radius: 99px;
}
.audience-tag svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--accent-deep);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mod-green .audience-tag,
.audience-tag--green {
  color: #186b41;
  background: var(--green-soft);
  border-color: #CFE8D8;
}
.mod-green .audience-tag svg,
.audience-tag--green svg { stroke: #186b41; }
.fhero .fhero-back {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fhero .fhero-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.fhero .audience-tag { margin-bottom: 14px; }
.hero-inner > .audience-tag + h1,
.fhero .audience-tag + h1 { margin-top: 0; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 550;
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 26px 0 28px;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero p.lede {
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--ink-2); max-width: 640px; line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; margin: 38px 0 18px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-3); }
.hero-note b { color: var(--ink-2); font-weight: 600; }

/* ---------- Produkt-Mockup (Shell) ---------- */
.stage { margin-top: 72px; position: relative; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--hair);
}
.app {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -1px 0 rgba(20,22,27,.02), 0 30px 80px -30px rgba(20,22,27,.25);
  overflow: hidden;
  font-size: 13px;
}
.app-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid #EEECE4; background: #FCFBF8;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #E4E1D8; }
.app-url {
  margin: 0 auto; background: #F3F1EA; border-radius: 6px;
  font-size: 11.5px; color: var(--ink-3); padding: 4px 38px; letter-spacing: .01em;
}
.app-body { display: grid; grid-template-columns: 196px 308px 1fr; height: 600px; }

.app-side { border-right: 1px solid #EEECE4; padding: 16px 10px; background: #FCFBF8; }
.app-side .brandmini { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; padding: 2px 8px 14px; }
.app-side .brandmini img { width: 18px; height: 18px; }
.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 7px; color: var(--ink-2); font-weight: 500; font-size: 12.5px;
}
.snav a svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snav a.act { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.snav .pill { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 6px; }

.app-list { border-right: 1px solid #EEECE4; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.app-list #convList { flex: 1; min-height: 0; overflow-y: auto; }
.app-list-head {
  padding: 14px 16px 10px; font-weight: 700; font-size: 14px;
  display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid #F2F0E9;
}
.app-list-head span { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.conv { text-align: left; width: 100%; padding: 12px 16px; border-bottom: 1px solid #F2F0E9; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; transition: background .15s; }
.conv:hover { background: #FAF9F4; }
.conv.sel { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.ava { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11.5px; color: #fff; }
.conv-name { font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.chan { font-size: 9px; font-weight: 700; letter-spacing: .06em; border-radius: 4px; padding: 1px 5px; text-transform: uppercase; }
.chan.wa { background: var(--green-soft); color: var(--green); }
.chan.sms { background: #F3E8FF; color: #6D28D9; }
.chan.mail { background: var(--accent-soft); color: var(--accent-deep); }
.channel-tags { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.channel-tags span {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 99px; padding: 5px 11px; border: 1px solid var(--hair);
}
.channel-tags .wa { background: var(--green-soft); color: var(--green); border-color: #CFE8D8; }
.channel-tags .sms { background: #F3E8FF; color: #6D28D9; border-color: #E4D4F7; }
.channel-tags .mail { background: var(--accent-soft); color: var(--accent-deep); border-color: #D4DCFA; }
.conv-prev { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.conv-time { font-size: 10.5px; color: var(--ink-3); }
.conv .unread { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin: 6px 0 0 auto; }
.conv-status { display: inline-flex; align-items: center; font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--hair); border-radius: 4px; padding: 2.5px 7px; margin-top: 7px; color: var(--ink-3); background: #fff; }
.conv-status.team { border-color: #E6D9BC; background: #FCF9F0; color: #7E6228; }

.app-thread { display: flex; flex-direction: column; background: #fff; min-height: 0; overflow: hidden; }
.thread-head { padding: 13px 20px; border-bottom: 1px solid #F2F0E9; display: flex; align-items: center; gap: 10px; }
.t-back { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--hair); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 19px; line-height: 1; padding-bottom: 2px; }
.thread-head .ava { width: 30px; height: 30px; font-size: 10.5px; }
.thread-head .t-name { font-weight: 700; font-size: 13px; }
.thread-head .t-meta { font-size: 11px; color: var(--ink-3); }
.thread-head .t-window { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 99px; display: flex; align-items: center; gap: 5px; }
.thread-head .t-window::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.thread-msgs { flex: 1; min-height: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #FCFBF8; overflow-y: auto; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; animation: msgIn .4s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.in { background: #fff; border: 1px solid #ECEAE2; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.sys { align-self: center; max-width: 86%; text-align: center; background: transparent; border: 1px dashed #DEDBD0; color: var(--ink-3); font-size: 11px; line-height: 1.45; border-radius: 9px; padding: 7px 13px; }
.msg.sys.flag { border: 1px solid #EADFC4; background: #FBF7EC; color: #7E6228; font-weight: 600; }
.msg.auto { position: relative; }
.msg .tag-auto {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: #C7D2FE; margin-bottom: 3px;
}
.msg-time { font-size: 10px; opacity: .55; margin-top: 3px; }
.thread-input { border-top: 1px solid #F2F0E9; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.thread-input .fake-field { flex: 1; border: 1px solid #E7E4DB; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--ink-3); background: #fff; }
.thread-input .send { background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 600; }

/* ---------- Kennzahlen ---------- */
.stats { border-bottom: 1px solid var(--hair); background: var(--paper); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 42px 28px; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat b { font-family: var(--serif); font-weight: 550; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -.02em; display: block; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--ink-2); display: block; margin-top: 8px; line-height: 1.45; }

/* ---------- Abschnitts-Kopf ---------- */
.sec { padding: 110px 0 0; }
.sec-head { max-width: 760px; margin: 0 auto; text-align: center; }
.sec-head .eyebrow { justify-content: center; }
.sec-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 550;
  font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.018em;
  margin: 22px 0 18px;
}
.sec-head p { color: var(--ink-2); font-size: 18px; max-width: 620px; margin: 0 auto; }

/* ---------- Flow (So arbeitet Praxishub) ---------- */
.flow { --flow-step: 7.5s; margin-top: 64px; display: grid; grid-template-columns: 390px 1fr; gap: 64px; align-items: stretch; padding-bottom: 110px; border-bottom: 1px solid var(--hair); }
.flow-steps { display: flex; flex-direction: column; }
.fstep { text-align: left; padding: 22px 0 22px 26px; border-left: 2px solid var(--hair); position: relative; transition: border-color .3s; }
.fstep .fnum { position: absolute; left: -13px; top: 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--hair); color: var(--ink-3); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .3s; z-index: 2; }
.fstep h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-3); transition: color .3s; }
.fstep p { font-size: 14.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .45s; }
/* Border bleibt grau – der blaue Fortschritt kommt allein vom animierten .fbar */
.fstep.act .fnum { background: var(--accent); border-color: var(--accent); color: #fff; }
.fstep.act h3 { color: var(--ink); }
.fstep.act p { max-height: 160px; opacity: 1; color: var(--ink-2); }
.fstep .fbar { position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--accent); z-index: 0; }
.fstep.act .fbar { animation: fbar var(--flow-step) linear forwards; }
.flow.paused .fstep.act .fbar { animation-play-state: paused; }
@keyframes fbar { from { height: 0; } to { height: 100%; } }

.flow-stage { position: relative; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 16px; min-height: 520px; overflow: hidden; }
.flow-stage::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(var(--hair) 1px, transparent 1px);
  background-size: 22px 22px;
}
.fscene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.fscene.act { opacity: 1; transform: none; pointer-events: auto; }

.scard {
  background: #fff; border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: 0 18px 50px -20px rgba(20,22,27,.18);
  width: 100%; max-width: 430px; overflow: hidden; font-size: 13px;
}
.scard-head { padding: 12px 18px; border-bottom: 1px solid #F0EEE6; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 12.5px; }
.scard-head .src { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.scard-body { padding: 18px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #ECEAE2; font-size: 12.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-3); }
.kv .v { font-weight: 600; }
.kv .v.old { text-decoration: line-through; color: var(--ink-3); font-weight: 500; margin-right: 8px; }
.kv .v.new { color: var(--accent-deep); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 4px 11px; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.sync { background: var(--accent-soft); color: var(--accent-deep); }
.badge .spin { width: 10px; height: 10px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wa-bubble-wrap { display: flex; flex-direction: column; gap: 8px; }
.wa-bubble { background: #E7F3EC; border-radius: 12px 12px 12px 4px; padding: 11px 14px; font-size: 13px; line-height: 1.5; max-width: 95%; }
.wa-bubble .wa-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--green); font-weight: 700; margin-bottom: 4px; letter-spacing: .05em; }
.wa-reply { background: #fff; border: 1px solid #ECEAE2; border-radius: 12px 12px 4px 12px; padding: 11px 14px; font-size: 13px; align-self: flex-end; max-width: 88%; }

/* ---------- Feature-Kapitel ---------- */
/* ---------- Cross-Feature-Kapitel: modulare Kacheln ---------- */
/* Gleiche Karten-DNA wie .mod / .jmod, aber bewusst farblose Grafik-
   Panels (paper-2 + maskiertes Raster) und ein durchgehender Indigo-
   Akzent – kein zusätzlicher Farb-Overload. */
/* Asymmetrische Bento-Komposition, jede Funktion mit EIGENER
   Akzentfarbe (Indigo/Amber/Grün/Teal via .acc-*). Kein durch-
   gehender Akzent-Strich – Individualität über Farbe, Größe,
   Layout & Textur. Großzügige Abstände gegen "gedrungen". */
.chapters {
  counter-reset: chap;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 34px;
}
.chapter {
  counter-increment: chap;
  position: relative;
  display: grid;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 90px -56px rgba(20,22,27,.42);
}

/* ---- Archetyp A: breite Showcase-Kachel (horizontal) ---- */
.ch-lead {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(76px, 1fr) auto auto minmax(76px, 1fr);
}
.ch-lead .ch-head   { grid-column: 1; grid-row: 2; padding: 0 66px; }
.ch-lead .ch-body   { grid-column: 1; grid-row: 3; padding: 26px 66px 0; }
.ch-lead .ch-visual { grid-column: 2; grid-row: 1 / -1; border-left: 1px solid var(--hair); }
.ch-lead .ch-head h3 { font-size: clamp(28px, 3vw, 38px); }

/* gespiegelt: Grafik links, Copy rechts */
.ch-lead-rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.ch-lead-rev .ch-head,
.ch-lead-rev .ch-body { grid-column: 2; }
.ch-lead-rev .ch-visual { grid-column: 1; border-left: none; border-right: 1px solid var(--hair); }

/* ---- Archetyp B: kompakte, grafik-betonte Hochkant-Kachel ---- */
.ch-duo {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto auto;
}
.ch-duo-a { grid-column: span 7; }
.ch-duo-b { grid-column: span 5; }
.ch-duo .ch-visual { grid-column: 1; grid-row: 1; border-bottom: 1px solid var(--hair); }
.ch-duo .ch-head   { grid-column: 1; grid-row: 2; padding: 42px 50px 0; }
.ch-duo .ch-body   { grid-column: 1; grid-row: 3; padding: 16px 50px 46px; }
.ch-duo .ch-head h3 { font-size: clamp(22px, 2vw, 27px); margin-top: 18px; }
/* kompakt: knappe Copy ohne Feature-Liste – klare Gewichtung ggü. Showcase */
.ch-duo .ch-feats { display: none; }
.ch-duo .ch-more { margin-top: 20px; }

.ch-num {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--acc-deep, var(--accent-deep));
}
.ch-num::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--acc, var(--accent)); flex-shrink: 0;
}
.ch-head h3 {
  font-family: var(--serif); font-weight: 550;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.018em;
  margin: 22px 0 0;
}
.ch-body > p { color: var(--ink-2); font-size: 15.5px; line-height: 1.64; }
.ch-feats { margin: 28px 0 2px; display: grid; gap: 1px; border-top: 1px solid var(--hair); }
.ch-feats li {
  padding: 14px 0 14px 32px; border-bottom: 1px solid var(--hair);
  font-size: 14.5px; line-height: 1.45; position: relative; color: var(--ink-2);
}
.ch-feats li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 16px; height: 16px; background: var(--acc, var(--accent));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ch-feats li b { font-weight: 600; color: var(--ink); }
.ch-feats li span { color: var(--ink-2); }
.ch-more { margin-top: 30px; }
.ch-more a { font-weight: 600; font-size: 14.5px; color: var(--acc-deep, var(--accent-deep)); display: inline-flex; align-items: center; gap: 8px; }
.ch-more a:hover { gap: 12px; }
.ch-more a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s; }

.ch-visual {
  position: relative; overflow: hidden;
  padding: 58px 54px;
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--hair);
  background:
    radial-gradient(135% 105% at 50% -10%, color-mix(in srgb, var(--acc, var(--accent)) 14%, #fff) 0%, transparent 60%),
    var(--paper-2);
}
.ch-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .28;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(72% 72% at 50% 45%, #000 0%, transparent 78%);
}
/* Duo-Kacheln: Grafik oben, dezent andere (Punkt-)Textur als Unterscheidung */
.ch-duo .ch-visual { border-left: none; padding: 50px 42px; }
.ch-duo .ch-visual::after {
  background-image: radial-gradient(var(--hair) 1.4px, transparent 1.4px);
  background-size: 20px 20px; opacity: .5;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 35%, #000 0%, transparent 82%);
  mask-image: radial-gradient(80% 80% at 50% 35%, #000 0%, transparent 82%);
}
.ch-visual .frame {
  position: relative; z-index: 1; width: 100%;
  background: none; border: none; border-radius: 0; padding: 0;
}

/* Kapitel 2 — Automationen-Liste */
.autol { display: flex; flex-direction: column; gap: 10px; }
.auto-row {
  background: #fff; border: 1px solid var(--hair); border-radius: 12px;
  padding: 15px 18px; display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  box-shadow: 0 8px 24px -16px rgba(20,22,27,.12);
}
.auto-row .ar-t { font-weight: 700; font-size: 13.5px; }
.auto-row .ar-s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.auto-row .ar-stat { font-size: 11.5px; color: var(--ink-2); text-align: right; line-height: 1.4; }
.auto-row .ar-stat b { color: var(--ink); font-size: 13px; }
.toggle { width: 40px; height: 23px; background: var(--green); border-radius: 99px; position: relative; flex-shrink: 0; transition: background .25s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 20px; width: 17px; height: 17px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .25s var(--ease); }
.toggle.off { background: #D5D2C8; }
.toggle.off::after { left: 3px; }
.auto-row.is-off .ar-t, .auto-row.is-off .ar-s, .auto-row.is-off .ar-stat { opacity: .45; }

/* Kapitel 3 — Reputation */
.rep { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 26px 28px; box-shadow: 0 8px 24px -16px rgba(20,22,27,.12); }
.rep-score { text-align: center; }
.rep-score b { font-family: var(--serif); font-size: 56px; font-weight: 550; line-height: 1; display: block; letter-spacing: -.02em; }
.rep-score .strs { color: #E8A413; font-size: 17px; letter-spacing: 2px; margin-top: 6px; }
.rep-score span { font-size: 11.5px; color: var(--ink-3); display: block; margin-top: 4px; }
.rep-bars { display: flex; flex-direction: column; gap: 7px; }
.rbar { display: grid; grid-template-columns: 14px 1fr 38px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-2); }
.rbar .track { height: 7px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.rbar .fill { height: 100%; background: #E8A413; border-radius: 99px; width: 0; transition: width 1.1s var(--ease); }
.rev-card { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 16px 18px; margin-top: 14px; font-size: 13px; box-shadow: 0 8px 24px -16px rgba(20,22,27,.12); }
.rev-card .rev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.rev-card .strs { color: #E8A413; font-size: 12px; letter-spacing: 1px; }
.rev-card .rev-who { font-weight: 700; font-size: 12.5px; }
.rev-card .rev-g { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; }
.rev-card p { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }

/* Kapitel 4 — Sync-Diagramm */
.syncd { display: flex; flex-direction: column; gap: 0; align-items: center; }
.sync-node { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 15px 22px; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; box-shadow: 0 8px 24px -16px rgba(20,22,27,.12); }
.sync-node .sn-t { font-weight: 700; font-size: 13.5px; }
.sync-node .sn-s { font-size: 11.5px; color: var(--ink-3); }
.sync-link { height: 56px; width: 2px; position: relative; background: var(--hair); }
.sync-link::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 30%; background: var(--accent); animation: flowdown 1.8s linear infinite; }
@keyframes flowdown { from { top: -30%; } to { top: 100%; } }
.sync-mid { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); border-radius: 99px; padding: 5px 13px; margin: 0; position: relative; z-index: 1; }
.mark { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; font-size: 13px; }
.pvs-mark { font-size: 11px; letter-spacing: -.02em; transition: background .4s var(--ease); }
.pvs-mark.sm { font-size: 9px; }
.sync-node .sn-t { transition: opacity .35s var(--ease); }
.sync-node .sn-s { transition: opacity .35s var(--ease); }

/* Kapitel — Wallet-Stempelkarte */
.wallet-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wpass {
  width: 100%; max-width: 350px; background: #fff; border: 1px solid var(--hair);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px -20px rgba(20,22,27,.22);
}
.wpass-head { background: var(--ink); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 11px; }
.wpass-head img { width: 24px; height: 24px; filter: brightness(0) invert(1); flex-shrink: 0; }
.wpass-head .wp-t { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.wpass-head .wp-s { font-size: 10px; color: #A5B4FC; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.wpass-body { padding: 20px 18px 16px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed #D8D5CA; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
}
.stamp.full { background: var(--accent); border: 1.5px solid var(--accent); color: #fff; }
.stamp.full svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wpass-prog { margin-top: 16px; font-size: 12px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; }
.wpass-prog b { color: var(--ink); }
.wpass-foot { border-top: 1px dashed #ECEAE2; padding: 12px 18px; display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: var(--ink-3); }
.wpass-foot b { color: var(--ink); font-weight: 600; }
.wp-note {
  width: 100%; max-width: 350px;
  background: #fff; border: 1px solid var(--hair); border-radius: 11px;
  padding: 11px 15px; font-size: 12px; color: var(--ink-2); line-height: 1.45;
  display: flex; gap: 9px; align-items: flex-start;
  box-shadow: 0 8px 24px -16px rgba(20,22,27,.12);
}
.wp-note .wp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: 5px; flex-shrink: 0; }
.wp-note b { color: var(--ink); }

/* Kapitel 5 — Chart */
.chart-card { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 22px 24px 14px; box-shadow: 0 8px 24px -16px rgba(20,22,27,.12); }
.chart-card .cc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chart-card .cc-t { font-weight: 700; font-size: 13.5px; }
.chart-card .cc-v { font-family: var(--serif); font-size: 26px; font-weight: 550; }
.chart-card .cc-d { font-size: 11.5px; color: var(--green); font-weight: 700; }
.report-card { background: var(--ink); color: #D6D8DE; border-radius: 12px; padding: 18px 22px; margin-top: 14px; font-size: 12.5px; line-height: 1.6; }
.report-card b { color: #fff; }
.report-card .rc-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #A5B4FC; margin-bottom: 8px; }

/* ---------- Zitat ---------- */
.quote { background: var(--ink); color: #F4F3EE; padding: 130px 0; }
.quote-mark { font-family: var(--serif); font-size: 110px; line-height: 0; color: var(--accent); height: 40px; display: block; }
.quote blockquote {
  font-family: var(--serif); font-weight: 450;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.28; letter-spacing: -.012em;
  max-width: 980px; margin-top: 36px;
}
.quote blockquote em { font-style: italic; color: #A5B4FC; }
.quote-attr { margin-top: 44px; display: flex; align-items: center; gap: 18px; }
.quote-attr .qa-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 15%; filter: grayscale(100%); flex-shrink: 0; border: 2px solid rgba(255,255,255,.12); }
.quote-attr .qa-line { width: 44px; height: 1px; background: var(--accent); }
.quote-attr .qa-n { font-weight: 700; font-size: 16px; color: #fff; }
.quote-attr .qa-r { font-size: 14.5px; color: #9FA3AE; margin-top: 1px; }

/* ---------- Pricing ---------- */
.pricing { padding: 110px 0; }
.plans { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hair); border-radius: 16px; background: #fff; overflow: hidden; }
.plans-main { grid-template-columns: 2fr 1fr; }
.plans-split { grid-template-columns: 1fr 1fr; }
.plan { padding: 44px 38px 40px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; position: relative; }
.plan:first-child { border-left: none; }
.plan.feat { background: linear-gradient(180deg, #FFFFFF, var(--accent-soft) 160%); box-shadow: inset 0 3px 0 var(--accent); }
.plan .flag {
  position: absolute; top: 26px; right: 30px;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: 4px 11px; border-radius: 99px;
  white-space: nowrap;
}
.plan h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.plan .p-for { font-size: 14px; color: var(--ink-2); margin-top: 5px; min-height: 44px; }
.plan .p-price { margin: 26px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.plan .p-price b { font-family: var(--serif); font-weight: 550; font-size: 50px; letter-spacing: -.025em; line-height: 1; }
.plan .p-price span { color: var(--ink-3); font-size: 14.5px; }
.plan .p-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 26px; }
.plan .btn { width: 100%; }
.plan .p-includes { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 30px 0 4px; }
.plan ul { margin-top: 8px; }
.plan ul li { padding: 8px 0; font-size: 14.5px; display: flex; gap: 10px; border-bottom: 1px dashed #EFEDE5; }
.plan ul li:last-child { border-bottom: none; }
.plan ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan ul li.hl { font-weight: 600; }
.plan ul li.hl svg { stroke: var(--accent); }
.pricing-foot { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 110px; }
.faq .wrap { display: flex; flex-direction: column; align-items: center; }
.faq .sec-head { width: 100%; }
.faq-list { margin-top: 48px; border-top: 1px solid var(--hair); max-width: 860px; width: 100%; }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 24px 0;
  font-size: 18px; font-weight: 600; letter-spacing: -.005em;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--serif); font-size: 26px; color: var(--ink-3); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-list .faq-a { padding: 0 48px 26px 0; color: var(--ink-2); font-size: 16px; max-width: 720px; }

/* ---------- CTA-Band ---------- */
.cta-band { border-top: 1px solid var(--hair); background: var(--paper-2); padding: 110px 0; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-weight: 550; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.018em; line-height: 1.1; }
.cta-band p { color: var(--ink-2); font-size: 18px; margin: 18px auto 36px; max-width: 540px; }
.cta-band .hero-cta { justify-content: center; margin-left: auto; margin-right: auto; max-width: none; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #9FA3AE; padding: 70px 0 36px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--hair-dark); }
.foot-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 18px; }
.foot-brand .brand-mark { height: 24px; width: 24px; filter: brightness(0) invert(1); }
.foot-brand .brand-word { height: 18px; width: auto; }
.foot-grid p { margin-top: 14px; max-width: 300px; line-height: 1.6; }
.foot-grid h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid a:hover { color: #fff; }
.foot-grid button.js-demo,
.foot-grid button.js-legal { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.foot-grid button.js-demo:hover,
.foot-grid button.js-legal:hover { color: #fff; }
.foot-base button.js-cookie-settings { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.foot-base button.js-cookie-settings:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 13px; color: #6E7280; flex-wrap: wrap; gap: 12px; }
.foot-base .legal { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-base a:hover { color: #fff; }

/* ---------- Modals & Cookie-Banner ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(20,22,27,.52);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: 0 24px 80px -20px rgba(20,22,27,.35);
  padding: 32px 32px 28px;
  transform: translateY(12px) scale(.98);
  transition: transform .25s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.modal-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 550; letter-spacing: -.015em; line-height: 1.15; }
.modal-close {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--hair); border-radius: 8px; background: #fff;
  color: var(--ink-3); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--ink); border-color: var(--ink-3); }
.modal p.lead { color: var(--ink-2); font-size: 15.5px; margin-bottom: 22px; line-height: 1.5; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="email"] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--hair); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.form-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 22px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.form-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.form-check a { color: var(--accent-deep); text-decoration: underline; }
.form-msg { font-size: 14px; margin-top: 12px; }
.form-msg.ok { color: var(--green); font-weight: 600; }
.form-msg.err { color: #B91C1C; }
.cookie-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.cookie-row:last-of-type { border-bottom: none; }
.cookie-row strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.cookie-row span { font-size: 13px; color: var(--ink-3); }
.cookie-row .tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); padding: 4px 9px; border-radius: 99px; flex-shrink: 0; }
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #fff; border-top: 1px solid var(--hair);
  box-shadow: 0 -8px 40px -12px rgba(20,22,27,.18);
  padding: 18px 0; transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.cookie-banner.show { transform: none; }
.cookie-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner p { font-size: 14px; color: var(--ink-2); max-width: 640px; line-height: 1.45; }
.cookie-banner .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .app-body { grid-template-columns: 280px 1fr; }
  .app-side { display: none; }
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow-stage { min-height: 420px; }
  .chapters { grid-template-columns: 1fr; }
  .ch-lead, .ch-lead-rev, .ch-duo, .ch-duo-a, .ch-duo-b {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
  }
  .ch-lead .ch-visual, .ch-lead-rev .ch-visual, .ch-duo .ch-visual {
    grid-column: 1; grid-row: 1;
    border-left: none; border-right: none; border-bottom: 1px solid var(--hair);
    padding: 36px 28px;
  }
  .ch-lead .ch-head, .ch-lead-rev .ch-head, .ch-duo .ch-head {
    grid-column: 1; grid-row: 2; padding: 34px 36px 0;
  }
  .ch-lead .ch-body, .ch-lead-rev .ch-body, .ch-duo .ch-body {
    grid-column: 1; grid-row: 3; padding: 16px 36px 38px;
  }
  .plans,
  .plans-main,
  .plans-split { grid-template-columns: 1fr; }
  .plan { border-left: none; border-top: 1px solid var(--hair); }
  .plan:first-child { border-top: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat { padding: 28px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .foot-base .legal { gap: 12px 16px; }
}
/* Nav schaltet früher (≤980) auf das mobile Menü um – Seiten-Layout bleibt bei ≤720 */
@media (max-width: 980px) {
  .nav { gap: 12px; position: relative; }
  .nav-toggle { display: flex; margin-left: auto; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  header.site.nav-open { z-index: 60; }
  /* backdrop-filter macht den Header sonst zum Containing-Block für das
     position:fixed-Panel – dann öffnet das Menü am Dokumentanfang statt am
     aktuellen Viewport. Beim geöffneten Menü deaktivieren. */
  header.site.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  header.site.nav-open .nav-toggle { display: none; }
  .nav-close {
    display: flex;
    position: absolute;
    top: 14px;
    right: 20px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hair);
    border-radius: 8px;
    background: #fff;
    z-index: 3;
  }
  .nav-close svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20,22,27,.16);
    z-index: 54;
    pointer-events: none;
  }
  .nav-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 76px 20px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background:
      radial-gradient(520px 320px at 110% -8%, rgba(79,70,229,.09), transparent 62%),
      radial-gradient(380px 260px at -15% 105%, rgba(30,127,79,.07), transparent 58%),
      var(--paper);
    box-sizing: border-box;
  }
  header.site.nav-open .nav-panel {
    display: flex;
    animation: navPanelIn .3s var(--ease);
  }
  @keyframes navPanelIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
  }
  .nav-links::before { content: none; }
  /* Gruppen-Label (Module / Funktionen) als Überschrift */
  .nav-item, .nav-item.has-menu { display: block; position: static; }
  .nav-item.has-menu::after,
  .nav-mega::before { content: none; }
  /* „Patientenbindung" sieht & verhält sich exakt wie „Patientengewinnung" (Link aufs Modul) */
  .nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 14px;
    padding: 14px 14px 14px 18px;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 12px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 550;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-transform: none;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }
  .nav-trigger .nav-chev { display: none; }
  /* Funktionsliste eingerückt unter dem Modulkopf, an einer Schiene */
  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0 0 6px 30px;
    padding: 0 0 0 16px;
    background: none;
    border: none;
    border-left: 2px solid var(--hair);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  /* Mega-Menü mobil: Vorschau ausblenden, Liste als einspaltige Großlinks */
  .nav-mega { width: auto; grid-template-columns: 1fr; }
  .mega-preview { display: none; }
  .mega-list {
    display: flex; flex-direction: column; gap: 4px;
    padding: 0; grid-template-columns: none;
  }
  .mega-item-ov { grid-column: auto; border-bottom: none; margin-bottom: 2px; padding-bottom: 0; }
  .mega-t { font: inherit; color: inherit; }
  /* Hover-Aktiv-Zustand mobil neutralisieren – nur aktuelle Seite markieren */
  .mega-item.active { background: transparent; }
  .mega-item.active .mega-t { color: inherit; }
  /* Modul-Direktlinks (Patientengewinnung, Analytics, Preise): große Serif-Zeilen */
  .nav-link-flat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 14px;
    padding: 14px 14px 14px 18px;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 12px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 550;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    transition: background .15s, border-color .15s;
  }
  /* Funktionen: untergeordnete, kleinere Zeilen mit Icon */
  .nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 10px 9px 8px;
    border: none;
    border-radius: 9px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--ink-2);
    text-align: left;
    text-decoration: none;
    transition: background .15s, color .15s;
  }
  /* Dezente Icons: kleiner Glyph in Akzentfarbe, ohne Kachel-Hintergrund */
  .nav-menu a .mega-ic {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: none;
    color: var(--acc-deep, var(--accent-deep));
  }
  .nav-menu a .mega-ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .nav-menu a .mega-t { font: inherit; color: inherit; }
  .nav-menu a .mega-d { display: none; }
  /* Sektionen mobil: ruhig – nur das Label (Funktionen / Kampagnen), keine Sub-Erklärung */
  .nav-menu .mega-sec { border: none; padding: 0; gap: 2px; }
  .nav-menu .mega-sec-h { margin: 14px 0 4px 8px; }
  .nav-menu .mega-sec-h span { font-size: 10.5px; }
  .nav-menu .mega-sec-h em { display: none; }
  .nav-link-flat::after,
  .nav-trigger::after {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--hair);
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M3 2l4 3-4 3' stroke='%2350545E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  }
  .nav-menu a:active, .nav-menu a:focus-visible,
  .nav-link-flat:active, .nav-link-flat:focus-visible,
  .nav-trigger:active, .nav-trigger:focus-visible {
    background: var(--accent-soft);
    border-left-color: var(--accent);
  }
  .nav-menu a[aria-current="page"],
  .nav-link-flat[aria-current="page"],
  .nav-trigger[aria-current="page"] {
    background: rgba(238,240,251,.65);
    border-left-color: var(--accent);
  }
  header.site.nav-open .nav-menu a,
  header.site.nav-open .nav-link-flat,
  header.site.nav-open .nav-trigger {
    animation: navLinkIn .35s var(--ease) backwards;
  }
  @keyframes navLinkIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
  }
  .nav-right {
    margin: 28px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--hair);
  }
  .nav-right::before {
    content: "Konto";
    display: block;
    padding: 0 4px 4px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .nav-right .login {
    display: block;
    text-align: center;
    padding: 13px 16px;
    border: 1px solid var(--hair);
    border-radius: 10px;
    background: #fff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
  }
  .nav-right .btn { width: 100%; }
}
@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .hero-cta {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .hero-cta .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .hero-cta .btn-lg {
    padding: 11px 8px;
    font-size: 12.5px;
    border-radius: 8px;
  }
  .hero-cta .btn-wa svg {
    width: 15px;
    height: 15px;
  }
  .plan { padding: 32px 24px 28px; }
  .plan .flag { top: 20px; right: 20px; }
  .plan .p-price { flex-wrap: wrap; gap: 4px 8px; }
  .plan .p-price span { flex: 1 1 100%; }
  .plan .p-price b { font-size: 42px; }
  .plan .p-for { min-height: 0; }
  .plans { border-radius: 14px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .sec { padding-top: 72px; }
  .quote { padding: 80px 0; }
  .pricing { padding: 72px 0; }

  /* Posteingang verhält sich wie eine mobile Messaging-App:
     Standard ist der geöffnete Chat, „‹" führt zur Liste. */
  .app-body { grid-template-columns: 1fr; height: 560px; }
  .app-list { border-right: none; }
  .app:not(.show-list) .app-list { display: none; }
  .app.show-list .app-thread { display: none; }
  .t-back { display: inline-flex; }
  .thread-head { padding: 11px 14px; }
  .thread-head .t-window { display: none; }
  .thread-msgs { padding: 14px 12px; }
  .msg { max-width: 88%; }
  .conv { padding: 13px 14px; }
  .conv-prev { max-width: 56vw; }
  .thread-input { padding: 10px 12px; }

  /* Kapitel-Grafiken: mehr Luft auf kleinen Bildschirmen */
  .ch-lead .ch-visual, .ch-lead-rev .ch-visual, .ch-duo .ch-visual { padding: 26px 18px; }
  .ch-lead .ch-head, .ch-lead-rev .ch-head, .ch-duo .ch-head { padding: 30px 24px 0; }
  .ch-lead .ch-body, .ch-lead-rev .ch-body, .ch-duo .ch-body { padding: 14px 24px 30px; }
  .fscene { padding: 18px 14px; }
  .flow-stage { min-height: 400px; }
  .scard-head { padding: 11px 14px; }
  .scard-body { padding: 14px; }
  .rep { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px; }
  .rep-score b { font-size: 44px; }
  .auto-row { grid-template-columns: 1fr auto; padding: 13px 14px; }
  .auto-row .ar-stat { display: none; }
  .sync-node { padding: 13px 16px; }
  .chart-card { padding: 18px 16px 10px; }
  .report-card { padding: 16px 16px; }
  .aibot-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: none; height: 86vh; border-radius: 18px 18px 0 0; }
}

/* ---------- Praxishub-AI-Chat („ausprobieren") ---------- */
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #186b41; }
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; }

.aibot-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 260;
  width: 380px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 18px;
  box-shadow: 0 30px 80px -24px rgba(20,22,27,.45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.aibot-panel.open { opacity: 1; visibility: visible; transform: none; }
.aibot-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; background: var(--green); color: #fff; }
.aibot-head .aibot-ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 17px;
}
.aibot-head .aibot-id { flex: 1; min-width: 0; }
.aibot-head .aibot-name { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.aibot-head .aibot-name .ai-word { height: 15px; width: auto; display: block; }
.aibot-head .aibot-status { font-size: 11.5px; opacity: .85; display: flex; align-items: center; gap: 5px; }
.aibot-head .aibot-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7BE5A6; }
.aibot-head .aibot-x {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: transparent;
  color: #fff; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  opacity: .85; transition: background .2s, opacity .2s;
}
.aibot-head .aibot-x:hover { background: rgba(255,255,255,.16); opacity: 1; }

.aibot-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 9px;
  background:
    radial-gradient(520px 320px at 90% -8%, rgba(30,127,79,.05), transparent 62%),
    var(--paper);
}
.aibot-bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.46;
  white-space: pre-wrap; word-wrap: break-word; animation: msgIn .35s var(--ease) both;
}
.aibot-bubble.in { background: #fff; border: 1px solid #ECEAE2; border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.aibot-bubble.out { background: #D7F2DE; border: 1px solid #C3E8CD; border-bottom-right-radius: 4px; align-self: flex-end; color: #16341F; }
.aibot-bubble.typing-in::after { content: ""; display: inline-block; width: 2px; height: 1.05em; vertical-align: -2px; margin-left: 2px; background: var(--ink-3); animation: aibotCaret .8s step-end infinite; }
@keyframes aibotCaret { 50% { opacity: 0; } }
.aibot-typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 14px; background: #fff; border: 1px solid #ECEAE2; border-radius: 13px; border-bottom-left-radius: 4px; }
.aibot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: aibotBlink 1.2s infinite both; }
.aibot-typing span:nth-child(2) { animation-delay: .2s; }
.aibot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aibotBlink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.aibot-sugg { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 16px 10px; }
.aibot-chip {
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-deep);
  background: #fff; border: 1px solid #D6D9EE; border-radius: 99px; padding: 7px 13px;
  cursor: pointer; transition: background .18s, border-color .18s, transform .12s;
}
.aibot-chip:hover { background: var(--accent-soft); border-color: var(--accent); }
.aibot-chip:active { transform: scale(.97); }

.aibot-foot { border-top: 1px solid var(--hair); padding: 10px 12px; display: flex; gap: 9px; align-items: flex-end; background: #fff; }
.aibot-foot textarea {
  flex: 1; resize: none; max-height: 92px; min-height: 22px; border: none; outline: none;
  font: inherit; font-size: 14px; line-height: 1.4; color: var(--ink); background: transparent; padding: 8px 4px;
}
.aibot-send {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, opacity .2s;
}
.aibot-send svg { width: 19px; height: 19px; fill: currentColor; }
.aibot-send:disabled { opacity: .45; cursor: default; }
.aibot-foot.ended { display: none; }
.aibot-ended-note { text-align: center; font-size: 12px; color: var(--ink-3); padding: 12px 16px; border-top: 1px solid var(--hair); background: #fff; }
