/* =========================================================================
   KI für meinen Betrieb – Stylesheet
   -------------------------------------------------------------------------
   Aufbau:
   1. Schriften (lokal eingebunden, keine Verbindung zu Google)
   2. Design-Variablen (Farben, Abstände) – hier zentral anpassen
   3. Grundlagen
   4. Layout-Bausteine (Container, Sektionen, Buttons, Karten)
   5. Einzelne Bereiche (Header, Hero, Probleme, Bots, Demo, Ablauf, ...)
   6. Demo-Geräte (Chatfenster, Handy)
   7. Animationen & Hilfsklassen
   Mobile first: Grundstile gelten fürs Handy, größere Bildschirme per
   @media (min-width: ...).
   ========================================================================= */

/* 1. Schriften ------------------------------------------------------------ */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Inter-Bold.woff") format("woff"); }

/* 2. Design-Variablen ----------------------------------------------------- */
:root {
  /* Akzentfarbe (Petrol). Für dunkles Blau z. B. #1D3D6B / #142C4F / #E8EEF6 */
  --accent: #0b5468;
  --accent-strong: #083f4f;
  --accent-soft: #e7f0f2;
  --accent-line: #c5dbe0;

  --ink: #0f1b24;         /* Haupttext */
  --ink-2: #33424e;       /* Fließtext */
  --muted: #5f6d79;       /* Nebentext */
  --line: #e2e7eb;        /* Linien */
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --bg-dark: #0c1f28;
  --ok: #1d7347;
  --ok-soft: #e7f3ec;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 36, .06), 0 1px 3px rgba(15, 27, 36, .04);
  --shadow: 0 2px 4px rgba(15, 27, 36, .04), 0 8px 24px rgba(15, 27, 36, .07);
  --shadow-lg: 0 4px 8px rgba(15, 27, 36, .05), 0 24px 48px rgba(15, 27, 36, .12);

  --container: 1160px;
  --gutter: 20px;
  --section-y: 72px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 104px; }
}

/* 3. Grundlagen ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Platzhalter deutlich sichtbar markieren (vor Livegang ersetzen!) */
.placeholder {
  background: #fff6d6; color: #6b4e00; border: 1px dashed #d9b440;
  padding: 0 .35em; border-radius: 4px; font-weight: 600; white-space: nowrap;
}

/* 4. Layout-Bausteine ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { font-size: 1.075rem; color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent-strong); background: var(--accent-soft); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.icon-badge .icon { width: 22px; height: 22px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid { gap: 20px; } }
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) and (max-width: 999px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* 5. Bereiche ------------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; font-size: 1.02rem; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.nav { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px var(--gutter) 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-nav .btn { margin-top: 16px; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 28px; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* Hero */
.hero { padding: 48px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  /* sehr dezentes Raster im Hintergrund, kein Farbverlauf */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); margin-left: 4px; }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: 1.125rem; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; list-style: none; font-size: .925rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { width: 16px; height: 16px; color: var(--ok); }
@media (min-width: 560px) { .hero-actions { flex-direction: row; } }
@media (min-width: 1000px) {
  .hero { padding: 80px 0 104px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* Hero-Visual: "Was heute Nacht passiert ist" */
.activity { padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.activity-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.activity-head strong { color: var(--ink); font-size: .95rem; }
.activity-head span { font-size: .8rem; color: var(--muted); }
.activity-list { list-style: none; }
.activity-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-item .icon-badge { width: 36px; height: 36px; border-radius: 9px; margin: 0; }
.activity-item .icon-badge .icon { width: 18px; height: 18px; }
.activity-item p { margin: 0; font-size: .9rem; line-height: 1.45; }
.activity-item p strong { color: var(--ink); font-weight: 600; display: block; }
.activity-item time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-foot { padding: 12px 20px; background: var(--bg-soft); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Probleme */
.problem-card h3 { margin-bottom: 8px; }
.problem-card p { margin: 0; color: var(--muted); }

/* Bots */
.bot-card { display: flex; flex-direction: column; }
.bot-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.bot-card .benefit { color: var(--ink-2); margin-bottom: 16px; }
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .95rem; }
.checklist .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.bot-card .btn { margin-top: auto; align-self: flex-start; }
.bot-tag { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

/* Demo-Bereich */
.demo-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: 0 calc(var(--gutter) * -1) 24px; padding-inline: var(--gutter);
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2);
  font: inherit; font-weight: 500; font-size: .95rem; cursor: pointer; transition: all .15s;
}
.demo-tab .icon { width: 18px; height: 18px; }
.demo-tab:hover { border-color: var(--accent-line); }
.demo-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 768px) { .demo-tabs { margin-inline: 0; padding-inline: 4px; } }

.demo-stage { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .demo-stage { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.demo-info h3 { font-size: 1.4rem; }
.demo-info p { color: var(--muted); }
.demo-scenario {
  border-left: 3px solid var(--accent); background: #fff; padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem; margin: 20px 0; box-shadow: var(--shadow-sm);
}
.demo-scenario strong { color: var(--ink); display: block; margin-bottom: 2px; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-note { font-size: .82rem; color: var(--muted); margin-top: 16px; }
.demo-device-wrap { display: flex; justify-content: center; }

/* Ablauf */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.step p { margin: 0; color: var(--muted); }
.step .meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.step .meta .icon { width: 16px; height: 16px; color: var(--accent); }

/* Vorteile */
.trust-card h3 { margin-bottom: 6px; }
.trust-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; color: var(--ink); font-size: 1.025rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--muted); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq-item .answer p:last-child { margin: 0; }

/* Kontakt */
.contact { background: var(--bg-dark); color: #c9d5db; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #8fc3cf; }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.contact-lead { font-size: 1.075rem; }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .icon { color: #8fc3cf; }
.contact-list a { color: #fff; }
.form-card { background: #fff; border-radius: var(--radius); padding: 24px; color: var(--ink-2); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #cfd7dd; border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #b42318; }
.form-consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .875rem; color: var(--muted); }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-hint { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.form-status { font-size: .9rem; margin: 12px 0 0; color: var(--ok); font-weight: 500; }

/* Footer */
.site-footer { background: #08171e; color: #9fb0b9; padding: 40px 0; font-size: .9rem; }
.footer-grid { display: flex; flex-direction: column; gap: 20px; }
.site-footer a { color: #d9e3e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
@media (min-width: 768px) { .footer-grid { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Rechtstexte (Impressum, Datenschutz) */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-note { background: #fff6d6; border: 1px solid #ecd27a; color: #5c4300; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .925rem; margin-bottom: 32px; }

/* 6. Demo-Geräte ---------------------------------------------------------- */

/* Chatfenster (Website-Widget) */
.chat-window {
  width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--accent); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chat-avatar .icon { width: 20px; height: 20px; }
.chat-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.chat-sub { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.chat-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6ee7a8; }
.chat-body {
  height: 460px; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-soft); scroll-behavior: smooth;
}
.chat-input { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.chat-input span { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
.chat-input .icon { color: var(--accent); }

.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .925rem; line-height: 1.45; animation: msgIn .28s ease-out both; }
.msg--bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg--system {
  align-self: center; max-width: 100%; background: transparent; color: var(--muted); font-size: .78rem; padding: 2px 10px;
  display: inline-flex; align-items: center; gap: 6px; text-align: center;
}
.msg--system .icon { width: 14px; height: 14px; }
.msg--file { display: inline-flex; align-items: center; gap: 8px; }
.msg--file .icon { width: 16px; height: 16px; }
.typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 6px; padding: 12px 14px; display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa7b1; animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; animation: msgIn .28s ease-out both; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--accent-line); background: #fff; color: var(--accent-strong); font-size: .85rem; font-weight: 500; transition: all .2s; }
.chip.is-picked { background: var(--accent); color: #fff; border-color: var(--accent); }
.chips.is-done .chip:not(.is-picked) { opacity: .45; }

/* Ergebnis-Karten innerhalb der Demo (Kalender, E-Mail, Zusammenfassung) */
.result {
  align-self: stretch; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .875rem;
  box-shadow: var(--shadow); animation: msgIn .3s ease-out both;
}
.result-head { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.result-head .icon { width: 15px; height: 15px; color: var(--accent); }
.result-title { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; }
.result dt { color: var(--muted); }
.result dd { margin: 0; color: var(--ink); }
.result--calendar { border-left: 4px solid var(--accent); }
.result--ok { background: var(--ok-soft); border-color: #bfe0cc; }
.result--ok .result-head .icon { color: var(--ok); }

/* Handy-Mockup (Missed-Call-Bot) */
.phone {
  width: 320px; max-width: 100%; border-radius: 44px; padding: 12px; background: #11181d;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a333a;
}
.phone-screen { position: relative; border-radius: 34px; overflow: hidden; background: #fff; height: 600px; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #11181d; border-radius: 20px; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: .78rem; font-weight: 600; color: var(--ink); }
.phone-head { text-align: center; padding: 6px 12px 10px; border-bottom: 1px solid var(--line); }
.phone-head .chat-avatar { margin: 0 auto 4px; background: var(--accent-soft); color: var(--accent); width: 44px; height: 44px; }
.phone-head strong { display: block; font-size: .85rem; color: var(--ink); }
.phone-head span { font-size: .72rem; color: var(--muted); }
.phone .chat-body { height: auto; flex: 1; background: #fff; padding: 14px 12px; }
.phone .msg { font-size: .875rem; }
.phone .msg--bot { background: #eef1f3; border: 0; }
.phone .msg--user { background: var(--accent); }
.call-screen {
  position: absolute; inset: 0; z-index: 2; background: #1b262d; color: #fff; display: flex; flex-direction: column; align-items: center;
  padding: 90px 24px 48px; text-align: center; transition: opacity .5s, visibility .5s;
}
.call-screen.is-hidden { opacity: 0; visibility: hidden; }
.call-screen .chat-avatar { width: 84px; height: 84px; margin-bottom: 18px; background: rgba(255,255,255,.1); }
.call-screen .chat-avatar .icon { width: 36px; height: 36px; }
.call-screen strong { font-size: 1.35rem; font-weight: 600; }
.call-status { margin-top: 6px; font-size: .9rem; color: #b8c4cb; min-height: 1.4em; }
.call-end { margin-top: auto; width: 64px; height: 64px; border-radius: 50%; background: #d64545; display: inline-flex; align-items: center; justify-content: center; }
.call-end .icon { width: 28px; height: 28px; transform: rotate(135deg); }

/* Telefonat mit dem KI-Assistenten */
.phone--call .phone-screen { background: #16222a; color: #fff; }
.phone--call .phone-status { color: #fff; }
.call-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 12px; }
.call-top .chat-avatar { width: 64px; height: 64px; margin-bottom: 10px; background: rgba(255,255,255,.1); color: #fff; }
.call-top .chat-avatar .icon { width: 28px; height: 28px; }
.call-top strong { font-size: 1.1rem; font-weight: 600; }
.phone--call .call-status { margin-top: 2px; font-size: .82rem; color: #b8c4cb; font-variant-numeric: tabular-nums; }
.call-badge { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(72,187,120,.18); color: #8ee0ae; transition: opacity .4s; }
.call-badge .icon { width: 13px; height: 13px; }
.call-badge.is-hidden { opacity: 0; }
.phone--call.is-ringing .chat-avatar { animation: ring 1s ease-in-out infinite; }
.phone--call.is-ended .call-status { color: #f2a7a7; }
.phone--call .chat-body.call-transcript { background: transparent; border-top: 1px solid rgba(255,255,255,.08); padding: 12px; }
.phone--call .msg { font-size: .84rem; }
.phone--call .msg[data-who]:not([data-who=""])::before { content: attr(data-who); display: block; font-size: .66rem; font-weight: 600; letter-spacing: .02em; opacity: .7; margin-bottom: 2px; }
.phone--call .msg--bot { background: rgba(255,255,255,.1); color: #fff; border: 0; }
.phone--call .msg--user { background: var(--accent); color: #fff; }
.phone--call .msg--system { color: #9fb0ba; }
.phone--call .typing { background: rgba(255,255,255,.1); border: 0; }
.typing.speaking { align-items: center; gap: 3px; padding: 12px 14px; }
.typing.speaking i { width: 3px; height: 14px; border-radius: 2px; background: #8ee0ae; animation: speak .9s ease-in-out infinite; }
.typing.speaking i:nth-child(2) { animation-delay: .15s; }
.typing.speaking i:nth-child(3) { animation-delay: .3s; }
.typing.speaking i:nth-child(4) { animation-delay: .45s; }
.typing.speaking i:nth-child(5) { animation-delay: .6s; }
.call-actions { display: flex; justify-content: center; padding: 12px 0 22px; }
.phone--call.is-ended .call-end { opacity: .45; }
@keyframes ring { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(142,224,174,.5); } 50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(142,224,174,0); } }
@keyframes speak { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* 7. Animationen & Hilfsklassen ------------------------------------------- */
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Dezentes Einblenden beim Scrollen (wird per JS aktiviert) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
