/* SalesDesk-Webseite – Farben aus shared/src/design.ts, Schrift Inter (lokal, keine Fremdabrufe) */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  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;
}

:root {
  --night: #163a5c;
  --blue: #1f4e79;
  --signal: #2e75b6;
  --sky: #dbe9f6;
  --paper: #f6f8fb;
  --card: #ffffff;
  --ink: #16202b;
  --muted: #55606d;
  --line: #e1e6ee;
  --won: #1a7f37;
  --won-soft: #7ee2a0;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151b;
    --card: #182029;
    --ink: #e8edf2;
    --muted: #a3adb9;
    --line: #2a3440;
    --sky: #1d2c3b;
    --signal: #6ea8dc;
    --won: #6fd88f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Inter Variable", Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
img, svg { max-width: 100%; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--card); padding: 8px 12px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
#nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
#nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.96rem; }
#nav a:hover, #nav a[aria-current="page"] { color: var(--signal); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  #nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  #nav.open { display: flex; }
  #nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: 1rem; line-height: 1.2; cursor: pointer; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--night); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: #0d1620; color: #fff; text-decoration: none; min-width: 200px; border: 1px solid rgb(255 255 255 / 0.18); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; opacity: 0.8; font-weight: 500; }
.store b { display: block; font-size: 1.06rem; letter-spacing: -0.01em; }
.store[aria-disabled="true"] { cursor: default; opacity: 0.86; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.is-android .stores { flex-direction: row-reverse; justify-content: flex-end; }

/* Hero */
.hero { background: radial-gradient(1200px 520px at 85% -10%, rgb(46 117 182 / 0.55), transparent 60%), linear-gradient(160deg, #10304d 0%, var(--night) 45%, var(--blue) 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 11ch; }
.hero .lead { color: #cfe0f1; }
.hero .note { color: #a9c4de; font-size: 0.92rem; margin-top: 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 56px; } }

/* Telefon mit Trichter – das Erkennungszeichen der Seite */
.phone { width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 46px; background: #0b121a; padding: 12px; box-shadow: 0 40px 80px rgb(0 0 0 / 0.35), inset 0 0 0 2px rgb(255 255 255 / 0.08); }
.phone picture, .phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.phone.small { width: 100%; padding: 8px; border-radius: 32px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.18); }
.phone.small img { border-radius: 25px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 14px; text-align: center; font-weight: 700; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 480px) { .gallery { grid-template-columns: minmax(0, 1fr); padding: 0 32px; } }
.screen { height: 100%; border-radius: 36px; background: #f4f6f9; color: #1c1f24; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; }
.screen-bar { background: var(--blue); color: #fff; padding: 34px 18px 14px; font-weight: 700; font-size: 16px; }
.screen-bar span { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; }
.funnel { padding: 16px 14px; display: grid; gap: 8px; }
.stage { margin: 0 auto; border-radius: 12px; padding: 9px 12px; white-space: nowrap; min-width: max-content; color: #fff; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; transform-origin: center; animation: grow 0.7s cubic-bezier(.2,.8,.2,1) both; }
.stage em { font-style: normal; opacity: 0.85; font-weight: 500; }
.stage:nth-child(1) { width: 100%; background: #2e75b6; animation-delay: 0.05s; }
.stage:nth-child(2) { width: 88%; background: #2a6aa6; animation-delay: 0.15s; }
.stage:nth-child(3) { width: 74%; background: #245d94; animation-delay: 0.25s; }
.stage:nth-child(4) { width: 60%; background: #1f4e79; animation-delay: 0.35s; }
.stage:nth-child(5) { width: 50%; background: #1a7f37; animation-delay: 0.5s; }
@keyframes grow { from { transform: scaleX(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.screen-kpi { margin: 4px 14px 0; background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; border: 1px solid #e1e5eb; }
.screen-kpi b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.screen-kpi span { color: #5d6673; font-size: 11px; }
.screen-list { margin: 10px 14px 0; display: grid; gap: 6px; }
.screen-list div { background: #fff; border: 1px solid #e1e5eb; border-radius: 12px; padding: 9px 12px; display: flex; justify-content: space-between; }
.screen-list small { color: #5d6673; }

/* Abschnitte */
section.block { padding: 88px 0; }
section.block.tight { padding: 64px 0; }
.intro { max-width: 46em; margin-bottom: 40px; }

/* Ablauf: echter Ablauf, deshalb nummeriert */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: j; border-top: 2px solid var(--line); }
.journey li { counter-increment: j; padding: 22px 22px 0 0; position: relative; }
.journey li::before { content: counter(j); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.95rem; }
.journey li:last-child::before { background: var(--won); }
.journey h3 { margin-top: 18px; }
.journey p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .journey { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--line); margin-left: 15px; } .journey li { padding: 0 0 28px 30px; } .journey li::before { left: -17px; top: 0; } .journey h3 { margin-top: 4px; } }

/* Funktionen: zweispaltige Liste statt Kachelwand */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--signal); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Datensicherheit */
.trust { background: var(--night); color: #e6eef7; }
.trust h2, .trust h3 { color: #fff; }
.trust .lead { color: #b9cde2; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.mode { border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--radius); padding: 26px; background: rgb(255 255 255 / 0.04); }
.mode.later { border-style: dashed; }
.mode .tag { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--night); background: var(--won-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.mode.later .tag { background: #c9d7e6; }
.mode ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.mode li { padding-left: 26px; position: relative; color: #d3e0ee; font-size: 0.97rem; }
.mode li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--won-soft); border-bottom: 2px solid var(--won-soft); transform: rotate(-45deg); }
.never { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: #b9cde2; font-size: 0.95rem; }
.never b { color: #fff; }
@media (max-width: 900px) { .modes { grid-template-columns: minmax(0, 1fr); } }

/* Weboberfläche-Vorschau */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.browser { border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 60px rgb(16 24 40 / 0.14); overflow: hidden; }
.browser-bar { height: 34px; display: flex; gap: 6px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 300px; font-size: 13px; }
.browser-side { background: var(--blue); color: #dbe7f3; padding: 14px 12px; display: grid; gap: 8px; align-content: start; }
.browser-side b { color: #fff; margin-bottom: 6px; }
.browser-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.kpis b { display: block; font-size: 18px; }
.kpis span { color: var(--muted); font-size: 11px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.bars span { flex: 1; background: var(--signal); border-radius: 6px 6px 0 0; opacity: 0.85; }
.bars span.w { background: var(--won); }
@media (max-width: 520px) { .browser-body { grid-template-columns: minmax(0, 1fr); } .browser-side { display: none; } }

/* Stufen */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); }
.plan.later { opacity: 0.8; }
.plan h3 { font-size: 1.35rem; margin-bottom: 2px; }
.plan .who { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .alt { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 7px; font-size: 0.95rem; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--won); border-bottom: 2px solid var(--won); transform: rotate(-45deg); }
.plan li.plus { font-weight: 700; padding-left: 0; }
.plan li.plus::before { display: none; }
.badge { display: inline-block; align-self: flex-start; background: var(--sky); color: var(--blue); font-weight: 700; font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 18px; max-width: 60em; }

/* FAQ */
.faq { max-width: 50em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--signal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Abschluss-Band */
.cta { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { margin: 0; max-width: 16ch; }
.cta .stores .store { background: var(--blue); }

/* Fußzeile */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.93rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--muted); }

/* Unterseiten */
.page-head { background: linear-gradient(160deg, #10304d, var(--blue)); color: #fff; padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); }
.page-head .lead { color: #cfe0f1; margin: 0; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 48px 20px 80px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 0.95rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.toc a:hover { background: var(--sky); }
.toc .tag { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; } .toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card); } }
.chapter { padding: 8px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; max-width: 46em; }
.chapter:last-child { border-bottom: 0; }
.chapter .sum { color: var(--muted); font-size: 1.08rem; }
.chapter .for { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--blue); background: var(--sky); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.chapter ol, .chapter ul { padding-left: 1.3em; display: grid; gap: 6px; }
.tip { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; background: var(--sky); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.tip svg { width: 22px; height: 22px; color: var(--signal); }
.tip p { margin: 0; }

.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.dl-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; font-size: 0.95rem; margin: 0; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; overflow-wrap: anywhere; }
.code { position: relative; background: #0d1620; color: #d8e6f3; border-radius: 12px; padding: 14px 16px; font: 0.88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.code-row { display: grid; gap: 8px; }
.code-row button { justify-self: start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 22px; max-width: 48em; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.steps > li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin: 4px 0 6px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.panel h2, .dl-card h2 { font-size: 1.5rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { font-size: 1.12rem; margin-top: 1.6em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1em 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--sky); }
.legal blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--signal); background: var(--card); }

.toc li.part { font-weight: 700; color: var(--muted); font-size: 0.82rem; margin-top: 14px; }
.toc li.part ol { font-weight: 400; font-size: 0.95rem; margin-top: 4px; }
.toc li.part a { color: var(--ink); }
.chapter h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.chapter .tbl { overflow-x: auto; margin: 12px 0; }
.chapter table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.chapter th, .chapter td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.chapter th { background: var(--sky); }
.chapter .next a { font-weight: 700; }
.tip.warn { background: #fff4e5; }
.tip.warn svg { color: #b54708; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip.warn { background: #3a2a12; } }
