/* Lokale Schriften (ersetzt Google Fonts). Quelle: @fontsource, SIL Open Font License */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-400-italic.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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-400-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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-500-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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-600-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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-700-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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext-400-italic.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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext-400-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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext-500-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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext-600-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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext-700-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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/fraunces-latin-500-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: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin-600-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: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext-500-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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext-600-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;
}

:root {
  --ink: #14231c;
  --muted: #5a6b62;
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --wa-header: #0b3d2e;
  --wa-header-soft: #145c45;
  --wa-accent: #1f8a5b;
  --wa-outgoing: #d8f5c8;
  --wa-incoming: #ffffff;
  --wa-chat-bg: #e8dfd0;
  --wa-system: #fff8e7;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(20, 35, 28, 0.28);
  --radius-bubble: 10px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(31, 138, 91, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(180, 120, 60, 0.14), transparent 50%),
    linear-gradient(160deg, #1a2f26 0%, #2c4a3c 45%, #3d5a4a 100%);
  min-height: 100vh;
}

.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(10, 28, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.demo-brand {
  color: #b8d4c4;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-close {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.15s ease;
}

.demo-close:hover {
  background: #334155;
}

.page {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(320px, 420px);
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 3.5rem);
  padding: 2rem 1.25rem;
}

.pitch {
  color: #f4f0e8;
  max-width: 28rem;
}

.pitch-brand {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8d4c4;
}

.pitch h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pitch-lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #d7e4db;
}

.pitch-points {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.pitch-points li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: #e8f0ea;
  font-size: 0.95rem;
}

.pitch-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7bc99a;
}

.pitch-cta {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid #7bc99a;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pitch-cta em {
  font-style: italic;
  color: #fff;
}

.pitch-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #a8bfb2;
}

.pitch-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: #d5ebe0;
}

.phone-shell {
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 390px;
  height: min(780px, calc(100vh - 3rem));
  display: flex;
  flex-direction: column;
  background: var(--wa-chat-bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 20% 30%, #000 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, #000 1px, transparent 1.5px);
  background-size: 28px 28px;
  z-index: 0;
}

.chat-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, var(--wa-header), var(--wa-header-soft));
  color: #fff;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(145deg, #c4a574, #8b6a3d);
  color: #1a1208;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.header-text strong {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-text span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.header-reset {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-reset:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(-20deg);
}

.chat-body {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  scroll-behavior: smooth;
}

.msg {
  max-width: 86%;
  padding: 0.55rem 0.7rem 0.4rem;
  border-radius: var(--radius-bubble);
  font-size: 0.92rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  animation: rise 0.28s ease both;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg.bot {
  align-self: flex-start;
  background: var(--wa-incoming);
  border-top-left-radius: 2px;
  color: var(--ink);
}

.msg.user {
  align-self: flex-end;
  background: var(--wa-outgoing);
  border-top-right-radius: 2px;
  color: var(--ink);
}

.msg.system {
  align-self: center;
  max-width: 92%;
  background: var(--wa-system);
  color: #5c4a22;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: none;
  padding: 0.45rem 0.65rem;
}

.msg .meta {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.msg.user .meta {
  color: #4a6b52;
}

.msg strong {
  font-weight: 600;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.7rem 0.9rem;
  background: var(--wa-incoming);
  border-radius: var(--radius-bubble);
  border-top-left-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8aa094;
  animation: bounce 1.1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.quick-replies {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(232, 223, 208, 0.95) 30%);
}

.chip {
  border: 1px solid rgba(20, 35, 28, 0.14);
  background: #fff;
  color: var(--wa-header);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  animation: rise 0.3s ease both;
}

.chip:hover {
  background: #f0faf4;
  border-color: var(--wa-accent);
  transform: translateY(-1px);
}

.chip:active {
  transform: translateY(0);
}

.chip .chip-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.1rem;
}

.composer {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem 0.75rem;
  background: #d9d0c2;
}

.composer input {
  flex: 1;
  border: 0;
  border-radius: 22px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.composer input:focus {
  box-shadow: 0 0 0 2px rgba(31, 138, 91, 0.35);
}

.composer button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--wa-header);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.composer button:hover {
  background: var(--wa-accent);
  transform: scale(1.04);
}

.composer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 880px) {
  .page {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
    align-items: stretch;
  }

  .pitch {
    max-width: none;
    text-align: left;
  }

  .pitch h1 {
    font-size: 1.75rem;
  }

  .pitch-points {
    display: none;
  }

  .pitch-cta {
    display: none;
  }

  .phone {
    max-width: none;
    height: min(720px, calc(100vh - 9rem));
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  body {
    background: #1a2f26;
  }

  .page {
    padding: 0;
    min-height: 100dvh;
  }

  .pitch {
    display: none;
  }

  .phone {
    height: 100dvh;
    max-width: none;
    border-radius: 0;
    border: 0;
  }
}
