/* ==========================================================
   Design-Tokens – blaue Markenwelt
   ========================================================== */
:root {
  --bg: #070D19;
  --bg-alt: #0A1322;
  --card: #101B2D;
  --card-2: #142238;
  --card-hover: #15253D;
  --line: rgba(150, 182, 230, 0.12);
  --line-2: rgba(150, 182, 230, 0.2);
  --text: #F5F8FF;
  --muted: #A9B8CF;
  --muted-2: #8394AE;

  --blue: #0099FF;
  --blue-light: #00B7FF;
  --royal: #316FFF;
  --grad: linear-gradient(120deg, #316FFF 0%, #0099FF 55%, #00B7FF 100%);
  /* Button-Verlauf: dunklere Stufen derselben Töne, damit weiße Schrift ≥ 4.5:1 erreicht */
  --grad-btn: linear-gradient(120deg, #2556D9 0%, #0073CC 100%);
  --accent-text: #4FC3FF;
  --blue-soft: rgba(0, 153, 255, 0.1);
  --blue-line: rgba(0, 153, 255, 0.35);
  --danger: #FF8A98;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* Manrope ExtraBold (lokal, SIL Open Font License – assets/fonts/OFL.txt) */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("assets/fonts/manrope-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("assets/fonts/manrope-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================
   Wortmarke SCAILEFLOW (components/brand-logo.js)
   AI #0099FF in voller Größe (--logo-size), SC + LEFLOW weiß in 75 %;
   gemeinsame Grundlinie, gleiche Familie und Stärke,
   keine Verläufe, Schatten oder Konturen.
   ========================================================== */
brand-logo {
  --logo-size: 26px; /* Größe von AI */
  display: inline-flex; align-items: baseline; flex: none;
  font-family: "Manrope", var(--font); font-weight: 800; font-style: normal;
  font-size: var(--logo-size); line-height: 1.4; letter-spacing: -0.01em;
  font-kerning: none; font-synthesis: none; text-transform: uppercase;
  white-space: nowrap; color: #FFFFFF; position: relative;
}
brand-logo[size="sm"] { --logo-size: 20px; }
brand-logo[size="lg"] { --logo-size: 40px; }
brand-logo[size="inline"] { --logo-size: 1.2em; }
brand-logo[symbol] { align-items: center; gap: .36em; }
.brand-logo__symbol { width: 1.3em; height: 1.3em; flex: none; display: block; }
.brand-logo__symbol-bg { fill: #070D19; stroke: rgba(150, 182, 230, .22); stroke-width: 1.5; }
.brand-logo__mark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand-logo__base { color: #FFFFFF; font-size: .75em; }
.brand-logo__ai { color: #0099FF; }
.brand-logo__sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================
   Basis
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: #07101f; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.ico, .ico-sm, .icon-box svg, .arrow-btn svg, .send-btn svg, .step-ico svg, .flow-ico svg, .avatar svg, .mini svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ico { width: 22px; height: 22px; }
.ico-sm { width: 16px; height: 16px; flex: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #fff; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .18s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 24px -12px rgba(0, 153, 255, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(0, 153, 255, .8), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-secondary { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover:not(:disabled) { border-color: var(--blue-line); background: var(--blue-soft); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.icon-only { width: 48px; padding: 0; flex: none; }

/* Kleine Kennzeichnung */
.tag {
  display: inline-flex; align-items: center; flex: none;
  font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text); background: var(--blue-soft); border: 1px solid var(--blue-line);
  border-radius: 999px; padding: 3px 10px; line-height: 1.4;
}

/* ==========================================================
   Kopfzeile / Navigation
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 13, 25, .8);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: calc(var(--container) + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; margin-right: auto; padding: 6px 0; border-radius: 6px; }
.site-header brand-logo { --logo-size: 29px; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 550;
  transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.is-current { color: var(--text); }
.main-nav a.is-current::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--grad); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03); place-items: center; cursor: pointer;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.hero-lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lights span { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-lights span:first-child { width: 560px; height: 420px; right: -80px; top: 40px; background: radial-gradient(circle, rgba(49,111,255,.32), transparent 65%); }
.hero-lights span:last-child { width: 420px; height: 360px; right: 26%; bottom: -120px; background: radial-gradient(circle, rgba(0,183,255,.18), transparent 65%); }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; font-weight: 650; color: var(--accent-text); letter-spacing: .01em;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(0,153,255,.7); }
.hero .kicker { padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--blue-soft); border: 1px solid var(--blue-line); margin-bottom: 26px; }

.hero-title { font-size: clamp(2.5rem, 4.7vw, 4.4rem); line-height: 1.06; font-weight: 750; letter-spacing: -0.035em; max-width: 14ch; }
.hero-title .grad-text { display: block; padding-bottom: .06em; }
.hero-lead { margin-top: 24px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.35vw, 19.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--blue-light); stroke-width: 2.2; }

/* Animierte Prozessdarstellung */
.hero-visual { margin: 0; position: relative; }
.flow-card {
  position: relative; border-radius: var(--r-lg); padding: 22px;
  background: linear-gradient(180deg, rgba(20, 34, 56, .92), rgba(13, 23, 40, .95));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02), inset 0 1px 0 rgba(255,255,255,.06);
}
.flow-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(49,111,255,.6), transparent 35%, transparent 70%, rgba(0,183,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 18px; border-bottom: 1px solid var(--line); }
.flow-head-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.flow-head-title svg { color: var(--accent-text); }

.flow-steps { position: relative; padding-top: 14px; }
.flow-step { position: relative; display: grid; grid-template-columns: 40px 1fr 24px; gap: 14px; padding: 10px 4px; transition: opacity .45s; opacity: .38; }
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 52px; bottom: -8px; width: 2px; border-radius: 2px; background: var(--line-2);
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 52px; bottom: -8px; width: 2px; border-radius: 2px; background: var(--grad);
  transform: scaleY(0); transform-origin: top; transition: transform .6s ease;
}
.flow-step.is-done::after { transform: scaleY(1); }
.flow-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); color: var(--muted); transition: all .35s;
}
.flow-ico svg { width: 18px; height: 18px; }
.flow-label { font-size: 13px; font-weight: 650; color: var(--muted); margin: 9px 0 8px; letter-spacing: .01em; }
.flow-bubble { display: inline-block; font-size: 14.5px; line-height: 1.5; padding: 9px 13px; border-radius: 12px 12px 12px 4px; background: #1A2B47; border: 1px solid var(--line); color: #DCE6F7; }
.flow-bubble-out { border-radius: 12px 12px 4px 12px; background: rgba(0,153,255,.14); border-color: var(--blue-line); color: #E6F4FF; }
.flow-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: #CFE0F5; font-variant-numeric: tabular-nums; }
.slot.is-taken { color: var(--muted-2); text-decoration: line-through; border-style: dashed; }
.flow-step.is-active .slot.is-pick, .flow-step.is-done .slot.is-pick { background: var(--grad-btn); border-color: transparent; color: #fff; }
.flow-record { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-record span { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: #1A2B47; color: #DCE6F7; }
.flow-state { width: 24px; height: 24px; margin-top: 8px; border-radius: 50%; display: grid; place-items: center; }
.flow-step.is-active { opacity: 1; }
.flow-step.is-done { opacity: .82; }
.flow-step.is-active .flow-ico { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 5px rgba(0,153,255,.14), 0 8px 24px -8px rgba(0,153,255,.9); }
.flow-step.is-done .flow-ico { color: var(--accent-text); border-color: var(--blue-line); }
.flow-step.is-active .flow-label, .flow-step.is-done .flow-label { color: var(--text); }
.flow-step.is-active .flow-state { border: 2px solid rgba(0,183,255,.25); border-top-color: var(--blue-light); animation: spin .8s linear infinite; }
.flow-step.is-done .flow-state { background: rgba(0,153,255,.18); }
.flow-step.is-done .flow-state::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--blue-light); border-bottom: 2px solid var(--blue-light); transform: translateY(-1px) rotate(-45deg); }
.flow-foot { margin-top: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   Abschnitte allgemein
   ========================================================== */
.section { padding: clamp(64px, 7.5vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-center { display: block; text-align: center; }
.section-head-center .section-title { margin: 0 auto; }
.section-title { font-size: clamp(1.95rem, 3.2vw, 3rem); line-height: 1.12; font-weight: 750; letter-spacing: -0.03em; max-width: 20ch; }
.section-lead { color: var(--muted); font-size: clamp(16.5px, 1.2vw, 18.5px); max-width: 36em; }
.section-head .section-lead { padding-bottom: 6px; }

.icon-box {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: linear-gradient(140deg, rgba(49,111,255,.22), rgba(0,183,255,.08)); border: 1px solid var(--blue-line); color: var(--blue-light);
}
.icon-box svg { width: 21px; height: 21px; }

/* ==========================================================
   Branchen-Tabs
   ========================================================== */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tablist [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 11px;
  border: 1px solid transparent; background: none; color: var(--muted); font-weight: 600; font-size: 15.5px; cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.tablist [role="tab"]:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tablist [role="tab"][aria-selected="true"] { color: #fff; background: var(--grad-btn); box-shadow: 0 6px 18px -10px rgba(0,153,255,.9); }

.industry-panel {
  margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  animation: panelIn .35s ease both;
}
.industry-panel:focus-visible { outline-offset: 4px; }
.industry-copy h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; }
.industry-copy > p:not(.benefit-head) { margin-top: 14px; color: var(--muted); max-width: 34em; }
.benefit-head { margin-top: 26px; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: #D7E1F0; font-size: 16px; }
.benefits svg { margin-top: 5px; color: var(--blue-light); stroke-width: 2.2; }

.example-flow { padding: 22px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.example-label { font-size: 13px; font-weight: 600; color: var(--muted-2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.example-label::after { content: "Beispiel"; margin-left: auto; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); border: 1px solid var(--blue-line); border-radius: 999px; padding: 1px 8px; }
.example-flow ol { position: relative; display: flex; flex-direction: column; gap: 4px; }
.example-flow li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 8px 0; font-size: 15px; color: var(--muted); }
.example-flow li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 42px; bottom: -6px; width: 2px; background: linear-gradient(var(--blue-line), transparent); }
.example-flow li > span {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--card-2); border: 1px solid var(--blue-line); color: var(--accent-text);
}
.example-flow li:last-child > span { background: var(--grad-btn); border-color: transparent; color: #fff; }
.example-flow strong { display: block; color: var(--text); font-weight: 650; font-size: 15.5px; margin-bottom: 1px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================
   Leistungen – asymmetrisches Raster
   ========================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, background-color .25s;
}
.card:hover { border-color: var(--blue-line); background: var(--card-hover); transform: translateY(-2px); }
.card h3 { font-size: clamp(20px, 1.6vw, 23px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin-top: 22px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.bento-chat { grid-column: span 4; }
.bento-phone { grid-column: span 2; grid-row: span 2; }
.bento-cal { grid-column: span 2; }
.bento-order { grid-column: span 2; }
.bento-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; align-items: end; }

.arrow-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--muted); transition: all .2s;
}
.arrow-btn svg { width: 16px; height: 16px; }
.arrow-btn:hover, .arrow-btn:focus-visible { color: #fff; background: var(--grad-btn); border-color: transparent; }
.card:hover .arrow-btn:not(:hover) { color: var(--blue-light); border-color: var(--blue-line); }

.mini { margin-top: 24px; }
.bento-split .mini { margin-top: 0; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.mini-chat p { margin: 0; font-size: 14px; line-height: 1.45; padding: 8px 12px; border-radius: 12px; max-width: 88%; }
.mini-chat .m-in { align-self: flex-end; background: #1A2B47; color: #DCE6F7; border-bottom-right-radius: 4px; }
.mini-chat .m-out { align-self: flex-start; background: rgba(0,153,255,.14); border: 1px solid var(--blue-line); color: #E6F4FF; border-bottom-left-radius: 4px; }
.mini-chat .m-src { display: inline-flex; align-items: center; gap: 6px; padding: 0 2px; font-size: 12px; color: var(--muted-2); max-width: none; }

.mini-phone { margin-top: auto; padding-top: 24px; }
.wave { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.wave i { flex: 1; height: 30%; border-radius: 3px; background: var(--grad); opacity: .85; animation: wave 1.6s ease-in-out infinite; }
.wave i:nth-child(3n) { height: 70%; animation-delay: -.4s; }
.wave i:nth-child(3n+1) { height: 45%; animation-delay: -.9s; }
.wave i:nth-child(4n) { height: 85%; animation-delay: -1.2s; }
@keyframes wave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.mini-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #D7E1F0; padding: 9px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.mini-steps li::before { content: counter(ms); width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--blue-soft); color: var(--accent-text); }

.mini-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); margin-top: auto; }
.bento-cal p, .bento-order p { margin-bottom: 22px; }
.mini-cal span { font-size: 11.5px; color: var(--muted-2); text-align: center; font-weight: 600; }
.mini-cal i { height: 22px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); }
.mini-cal i.b { background: rgba(150,182,230,.12); }
.mini-cal i.new { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(0,153,255,.6); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 4px rgba(0,153,255,.3); } }

.mini-pipe { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.mini-pipe span { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #D7E1F0; flex: none; }
.mini-pipe span svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--blue-line); color: var(--blue-light); }
.mini-pipe b { flex: 1; height: 2px; min-width: 10px; margin-bottom: 20px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-line), var(--blue-light), var(--blue-line)); background-size: 200% 100%; animation: flowline 2.2s linear infinite; }
@keyframes flowline { to { background-position: -200% 0; } }

/* ==========================================================
   Demo
   ========================================================== */
.demo-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.demo-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.demo-intro .section-lead { margin-top: 18px; }
.segmented { display: inline-flex; gap: 4px; margin-top: 30px; padding: 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); max-width: 100%; }
.segmented [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
  background: none; color: var(--muted); font-weight: 600; font-size: 15.5px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.segmented [role="tab"]:hover { color: var(--text); }
.segmented [role="tab"][aria-selected="true"] { background: var(--grad-btn); color: #fff; }
.sim-note { display: flex; gap: 12px; margin-top: 24px; padding: 16px 18px; border-radius: var(--r); background: var(--blue-soft); border: 1px solid var(--blue-line); font-size: 14.5px; color: #CFE6FA; max-width: 34em; }
.sim-note svg { margin-top: 3px; color: var(--blue-light); }
.sim-note strong { color: #fff; }

.chat-card, .call-card {
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(0, 80, 200, .55);
  animation: panelIn .3s ease both;
}
.app-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.app-title { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 650; font-size: 15px; line-height: 1.3; }
.app-title small { font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-title small.is-live { color: var(--accent-text); }
.demo-note { padding: 10px 18px; font-size: 13px; line-height: 1.5; color: #BFD9F2; background: rgba(0,153,255,.06); border-bottom: 1px solid var(--line); }
.demo-note strong { color: #fff; }

.chat-log { height: 340px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; white-space: pre-line; animation: msgIn .25s ease both; }
.msg-bot { align-self: flex-start; background: #1A2B47; border-bottom-left-radius: 4px; color: #E3ECF9; }
.msg-user { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; }
.msg-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.chip-btn { border: 1px solid var(--blue-line); background: var(--blue-soft); color: #D3EBFF; border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; transition: all .2s; line-height: 1.3; }
.chip-btn:hover { background: rgba(0,153,255,.22); color: #fff; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--card-2); }
.chat-input input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.chat-input input::placeholder { color: var(--muted-2); }
.chat-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,153,255,.2); }
.send-btn { width: 52px; height: 48px; flex: none; border: 0; border-radius: 12px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .18s; }
.send-btn:hover { transform: translateY(-1px); }
.send-btn svg { width: 20px; height: 20px; stroke-width: 2; }

.call-card .call-steps, .call-card .call-controls, .call-card .small-note { margin-left: 22px; margin-right: 22px; }
.eq { display: flex; align-items: center; gap: 3px; height: 26px; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--blue-light); opacity: .35; }
.eq i:nth-child(odd) { height: 60%; }
.eq i:nth-child(3n) { height: 90%; }
.eq.is-on i { opacity: .95; animation: eq .9s ease-in-out infinite; }
.eq.is-on i:nth-child(2) { animation-delay: -.2s; } .eq.is-on i:nth-child(3) { animation-delay: -.5s; }
.eq.is-on i:nth-child(4) { animation-delay: -.1s; } .eq.is-on i:nth-child(5) { animation-delay: -.65s; }
.eq.is-on i:nth-child(6) { animation-delay: -.35s; } .eq.is-on i:nth-child(7) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.call-steps { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 18px; }
.call-steps::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 20px; width: 2px; background: var(--line-2); border-radius: 2px; }
.call-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; opacity: .4; transition: opacity .4s; }
.step-ico { position: relative; z-index: 1; width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted); transition: all .35s; }
.step-ico svg { width: 16px; height: 16px; }
.step-label { display: block; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.call-steps p { color: #D3DDEC; font-size: 15px; line-height: 1.5; }
.call-steps li.is-done { opacity: .78; }
.call-steps li.is-done .step-ico { border-color: var(--blue-line); color: var(--blue-light); }
.call-steps li.is-active { opacity: 1; }
.call-steps li.is-active .step-ico { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px rgba(0,153,255,.14); }
.call-steps li.is-active p { color: #fff; }
.call-controls { display: flex; gap: 10px; margin-top: 20px; }
.call-main { flex: 1; min-width: 0; }
.small-note { margin-top: 12px; margin-bottom: 20px; font-size: 13px; color: var(--muted-2); text-align: center; }

/* ==========================================================
   Zusammenarbeit – drei Schritte
   ========================================================== */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 52px); counter-reset: s; }
.steps3 li { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .25s; }
.steps3 li:hover { border-color: var(--blue-line); }
.steps3 li:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -17px; width: 18px; height: 2px; background: var(--grad); z-index: 1;
}
.steps3-top { display: flex; align-items: center; justify-content: space-between; }
.steps3-num { font-size: 44px; font-weight: 750; line-height: 1; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps3-top .ico { color: var(--muted-2); }
.steps3 h3 { margin-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.steps3 p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ==========================================================
   FAQ (kompakt, zweispaltig)
   ========================================================== */
.faq-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-intro .section-lead { margin-top: 16px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 4px; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--text); transition: color .2s;
}
.faq-item button:hover { color: var(--accent-text); }
.faq-sign { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 8px; top: 13px; width: 10px; height: 1.8px; background: var(--blue-light); border-radius: 1px; transition: transform .25s; }
.faq-sign::after { transform: rotate(90deg); }
.faq-item.is-open .faq-sign { background: var(--blue-soft); border-color: var(--blue-line); }
.faq-item.is-open .faq-sign::after { transform: rotate(0deg); }
.faq-panel { padding: 0 48px 20px 4px; color: var(--muted); font-size: 16px; }
.faq-panel p { max-width: 62ch; }

/* ==========================================================
   Kontakt
   ========================================================== */
.contact { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact-light { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 15% 30%, rgba(49,111,255,.16), transparent 70%), radial-gradient(ellipse 40% 50% at 85% 80%, rgba(0,183,255,.1), transparent 70%); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy .section-lead { margin-top: 16px; }
.call-box { margin-top: 28px; padding: 22px; border-radius: var(--r); background: rgba(16, 27, 45, .8); border: 1px solid var(--line-2); }
.call-box-head { font-weight: 650; margin-bottom: 8px; }
.call-box .btn { margin-top: 16px; }
.setup-note { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.setup-note svg { margin-top: 4px; color: var(--accent-text); }
.price-note { margin-top: 20px; color: var(--muted); font-size: 15.5px; }
.price-note strong { color: var(--text); }
.contact-direct { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.contact-direct li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.contact-direct svg { color: var(--accent-text); }
.contact-direct a { color: var(--text); text-decoration: none; }
.contact-direct a:hover { color: var(--accent-text); }

.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -50px rgba(0, 80, 200, .5); }
.form-title { font-size: 22px; font-weight: 700; }
.form-sub { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.preview-banner { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 22px; padding: 12px 14px; border-radius: 12px; background: rgba(0,153,255,.07); border: 1px solid var(--blue-line); font-size: 14px; line-height: 1.5; color: #CFE6FA; }
.preview-banner svg { margin-top: 2px; color: var(--blue-light); }
.preview-banner strong { color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: #DCE6F4; margin-bottom: 6px; }
.optional { color: var(--muted-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 124px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B8CF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field select option { background: var(--card); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,153,255,.2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255,138,152,.2); }
.field-hint { font-size: 13px; color: var(--muted-2); margin-top: 6px; }
.field-error { font-size: 13.5px; color: var(--danger); margin-top: 6px; }
.field-error:empty { display: none; }
.form-card .btn-block { margin-top: 4px; min-height: 52px; }
.form-result { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.55; border: 1px solid var(--blue-line); background: rgba(0,153,255,.08); color: #D6EBFB; }
.form-result.is-success { border-color: rgba(80, 220, 160, .45); background: rgba(80, 220, 160, .08); color: #D3F7E6; }
.form-result.is-error { border-color: rgba(255,138,152,.45); background: rgba(255,138,152,.07); color: #FFD6DC; }
.form-result strong { color: #fff; }
.form-result a { color: var(--accent-text); }
.form-result:focus { outline: none; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { border-top: 1px solid var(--line); background: #050A14; padding: 52px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand brand-logo { --logo-size: 32px; }
.footer-tagline { margin-top: 8px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.footer-brand .footer-text { margin-top: 14px; max-width: 30ch; }
.footer-head { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.footer-list li { padding: 3px 0; }
.footer-list a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.footer-list a:hover { color: var(--accent-text); }
.footer-text { color: var(--muted); font-size: 15px; line-height: 1.65; }
.footer-bottom { padding-top: 22px; color: var(--muted-2); font-size: 13.5px; }

/* Rechtsseiten */
.legal { padding: clamp(48px, 6vw, 96px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 24px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.legal p { color: var(--muted); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 12px; color: var(--muted); }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--accent-text); }
.legal strong { color: var(--text); }
.legal .site-header .btn, .site-header .btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }

/* ==========================================================
   Website-Assistent (components/site-chat.js)
   ========================================================== */
.sfchat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.sfchat > * { pointer-events: auto; }
.sfchat-launcher {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  background: var(--grad-btn); color: #fff; font-weight: 650; font-size: 15px;
  box-shadow: 0 14px 34px -12px rgba(0, 120, 255, .75), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .18s, box-shadow .2s;
}
.sfchat-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(0, 120, 255, .9), inset 0 1px 0 rgba(255,255,255,.22); }
.sfchat-launcher svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sfchat-launcher-close { display: none; }
.sfchat.is-open .sfchat-launcher { padding: 0; width: 52px; justify-content: center; }
.sfchat.is-open .sfchat-launcher-label, .sfchat.is-open .sfchat-launcher-ico { display: none; }
.sfchat.is-open .sfchat-launcher-close { display: block; }

.sfchat-panel {
  order: -1; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line-2); background: var(--card);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.02);
  animation: sfchatIn .22s cubic-bezier(.2,.7,.2,1) both; transform-origin: bottom right;
}
@keyframes sfchatIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.sfchat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.sfchat-avatar { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #070D19; border: 1px solid var(--line-2); }
.sfchat-avatar svg { width: 30px; height: 30px; }
.sfchat-head-text { flex: 1; min-width: 0; }
.sfchat-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.sfchat-sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.sfchat-close { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sfchat-close:hover { color: var(--text); background: rgba(255,255,255,.05); }
.sfchat-close svg, .sfchat-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sfchat-consent { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: #CFDBEC; }
.sfchat-consent-title { font-weight: 700; color: var(--text); font-size: 16px; }
.sfchat-consent a, .sfchat-foot a { color: var(--accent-text); }
.sfchat-consent .btn { margin-top: auto; }

.sfchat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sfchat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.sfchat-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; animation: msgIn .22s ease both; }
.sfchat-bot { align-self: flex-start; background: #1A2B47; color: #E3ECF9; border-bottom-left-radius: 4px; }
.sfchat-user { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; }
.sfchat-error { background: rgba(255,138,152,.08); border: 1px solid rgba(255,138,152,.35); color: #FFD6DC; }
.sfchat-typing { display: inline-flex; gap: 5px; padding: 13px 15px; }
.sfchat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.sfchat-typing i:nth-child(2) { animation-delay: .15s; }
.sfchat-typing i:nth-child(3) { animation-delay: .3s; }
.sfchat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.sfchat-suggest .chip-btn { font-size: 13px; padding: 6px 12px; }
.sfchat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card-2); }
.sfchat-form textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); outline: none; line-height: 1.4; font-size: 15px;
}
.sfchat-form textarea::placeholder { color: var(--muted-2); }
.sfchat-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,153,255,.2); }
.sfchat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sfchat-send:disabled { opacity: .5; cursor: wait; }
.sfchat-foot { padding: 0 12px 10px; background: var(--card-2); font-size: 11.5px; color: var(--muted-2); text-align: center; }

@media (max-width: 640px) {
  .sfchat { right: 12px; bottom: 12px; left: 12px; }
  .sfchat-launcher-label { display: none; }
  .sfchat-launcher { width: 56px; min-height: 56px; padding: 0; justify-content: center; }
  .sfchat-panel { width: 100%; height: min(78vh, calc(100dvh - 96px)); }
  .sfchat-form textarea { font-size: 16px; } /* verhindert Auto-Zoom auf iOS */
  .sfchat.is-open .sfchat-launcher { width: 56px; }
}
@media print { .sfchat { display: none; } }

/* ==========================================================
   Einblenden beim Öffnen und Scrollen (main.js → initReveal)
   ========================================================== */
.reveal-on:not(.reveal-ready) main, .reveal-on:not(.reveal-ready) .site-footer { opacity: 0; }
.reveal-on .site-header { animation: headerIn .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes headerIn { from { opacity: 0; transform: translateY(-10px); } }

[data-reveal] {
  opacity: 0;
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"] { transform: translateY(26px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 640px) {
  [data-reveal="right"] { transform: translateY(26px); }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { max-width: 16ch; }
  .hero-visual { max-width: 620px; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-intro { position: static; }
  .bento-chat { grid-column: span 6; }
  .bento-phone { grid-column: span 3; grid-row: span 2; }
  .bento-cal, .bento-order { grid-column: span 3; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-copy { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    padding: 12px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .7);
    display: none;
  }
  .main-nav.is-open { display: block; animation: panelIn .2s ease both; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a:not(.btn) { padding: 14px 6px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .main-nav a.is-current::after { display: none; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 18px; }
  .section-head { grid-template-columns: 1fr; }
  .industry-panel { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 li:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 50px; width: 2px; height: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header brand-logo { --logo-size: 25px; }
  .hero { padding-top: 36px; }
  .hero-title { font-size: clamp(2.1rem, 9.6vw, 2.9rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 8px; }
  .flow-card { padding: 16px; }
  .flow-step { grid-template-columns: 36px 1fr 20px; gap: 12px; padding: 8px 0; }
  .flow-ico { width: 36px; height: 36px; border-radius: 10px; }
  .flow-step:not(:last-child)::before, .flow-step:not(:last-child)::after { left: 17px; top: 46px; }
  .flow-state { width: 20px; height: 20px; }
  .flow-bubble { font-size: 14px; }
  .tablist { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tablist [role="tab"] { justify-content: center; padding: 0 10px; font-size: 15px; }
  .industry-panel { padding: 20px; }
  .example-flow { padding: 16px; }
  .bento { grid-template-columns: 1fr; }
  .bento-chat, .bento-phone, .bento-cal, .bento-order { grid-column: auto; grid-row: auto; }
  .bento-split { grid-template-columns: 1fr; gap: 20px; }
  .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .segmented [role="tab"] { justify-content: center; padding: 0 8px; font-size: 14.5px; }
  .chat-log { height: 360px; padding: 14px; }
  .msg { max-width: 90%; }
  .call-card .call-steps, .call-card .call-controls, .call-card .small-note { margin-left: 16px; margin-right: 16px; }
  .faq-item button { font-size: 16px; padding: 18px 2px; }
  .faq-panel { padding-right: 8px; font-size: 15.5px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 380px) {
  .segmented [role="tab"] svg, .tablist [role="tab"] svg { display: none; }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wave i, .mini-pipe b, .mini-cal i.new, .eq.is-on i { animation: none !important; }
  .flow-step.is-active .flow-state { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
