/* dein.bot v1
   Ein Thema (dunkel), ein Akzent (Kupfer).
   Radius-System: Buttons pill, Panels 16px, Chat-Blasen 14px (eine Ecke 4px). */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-var-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #100e0c;
  --bg-raised: #171411;
  --panel: #1c1815;
  --panel-edge: #2a251f;
  --text: #f2ece4;
  --text-muted: #a89f93;
  --text-faint: #6f675d;
  --copper: #c2703e;
  --copper-strong: #d07f4b;
  --copper-ink: #1c0f06;
  --radius-panel: 16px;
  --radius-bubble: 14px;
  --font-display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Feine Koernung ueber der ganzen Seite */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }
.measure { max-width: 62ch; }

a { color: var(--copper-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-edge);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.wordmark img {
  height: 1.75em;
  width: auto;
  display: block;
  margin-right: 0.45em;
}
.wm-text { white-space: nowrap; }
.wordmark .dot { color: var(--copper); }
.wordmark:hover { text-decoration: none; }
.nav-links {
  display: none;
  gap: 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--copper); color: var(--copper-ink); }
.btn-primary:hover { background: var(--copper-strong); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--panel-edge);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text-faint); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 14, 12, 0.55) 0%, rgba(16, 14, 12, 0.2) 30%, rgba(16, 14, 12, 0) 60%, var(--bg) 96%),
    linear-gradient(90deg, rgba(16, 14, 12, 0.94) 0%, rgba(16, 14, 12, 0.82) 34%, rgba(16, 14, 12, 0.38) 62%, rgba(16, 14, 12, 0.15) 100%),
    url("nacht.webp") right center / cover no-repeat var(--bg);
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Eroeffnung: das Licht geht an (einmal je Seitenaufruf) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::after {
  background: #0c0a09;
  opacity: 0;
  z-index: 1;
}
.hero::before {
  background: radial-gradient(ellipse 34% 42% at 78% 44%, rgba(240, 165, 90, 0.32), transparent 70%);
  opacity: 0.55;
  z-index: 1;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: licht-schleier 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
  .hero::before {
    animation:
      licht-schein 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both,
      licht-atmen 7s ease-in-out 2.6s infinite alternate;
  }
  .hero.ruht::before { animation-play-state: paused, paused; }
  .hero-grid > div:first-child { animation: ankommen 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.55s both; }
  .hero-grid .chat { animation: ankommen 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.8s both; }
  @keyframes licht-schleier {
    from { opacity: 0.96; }
    38% { opacity: 0.96; }
    to { opacity: 0; }
  }
  @keyframes licht-schein {
    from { opacity: 0; }
    to { opacity: 0.55; }
  }
  @keyframes licht-atmen {
    from { opacity: 0.55; }
    to { opacity: 0.34; }
  }
  @keyframes ankommen {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
@media (max-width: 720px) {
  .hero::before { display: none; }
}
.hero .chat { justify-content: flex-start; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Chat ---------- */
.chat {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.chat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.bubble {
  max-width: 88%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-bubble);
  font-size: 0.92rem;
  line-height: 1.5;
}
.bubble .meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}
.bubble-in {
  align-self: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--panel-edge);
  border-bottom-left-radius: 4px;
}
.bubble-out {
  align-self: flex-end;
  background: color-mix(in srgb, var(--copper) 26%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--copper) 40%, var(--panel-edge));
  border-bottom-right-radius: 4px;
}
.bubble-out .meta { color: color-mix(in srgb, var(--copper-strong) 70%, var(--text-faint)); }

/* ---------- Sektionen ---------- */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--bg-raised); }

/* Problem: Poster-Moment mit Uhrzeit */
.statement-wrap { position: relative; overflow: hidden; }
.big-time {
  position: absolute;
  top: 50%;
  right: -0.05em;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(9rem, 28vw, 24rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--copper) 14%, transparent);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}
.statement { position: relative; }
.statement h2 { max-width: 20ch; font-size: clamp(2rem, 5vw, 3.2rem); }
.statement p { font-size: 1.12rem; }

/* Branchen: Bento aus Gesprächen */
.branchen-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .branchen-grid { grid-template-columns: repeat(2, 1fr); }
  .branchen-grid .chat-card:first-child,
  .branchen-grid .chat-card:last-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .branchen-grid { grid-template-columns: repeat(3, 1fr); }
  .branchen-grid .chat-card:first-child { grid-column: span 1; grid-row: span 2; }
  .branchen-grid .chat-card:last-child { grid-column: span 3; }
}
.chat-card:last-child .bubble { max-width: 640px; }
.karte-bild {
  margin: -1.25rem -1.25rem 0.2rem;
  border-radius: calc(var(--radius-panel) - 1px) calc(var(--radius-panel) - 1px) 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 1.35;
  background: var(--bg-raised);
}
.karte-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
@media (min-width: 1024px) {
  .branchen-grid .chat-card:first-child .karte-bild { aspect-ratio: auto; flex: 1; min-height: 300px; }
  .branchen-grid .chat-card:first-child { justify-content: flex-start; }
  .branchen-grid .chat-card:first-child > div { margin-top: 0.8rem; }
  .branchen-grid .chat-card:first-child .try { margin-top: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .chat-card:hover .karte-bild img { transform: scale(1.04); }
}
.chat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .chat-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--copper) 45%, var(--panel-edge));
    box-shadow: 0 14px 40px color-mix(in srgb, var(--copper) 10%, transparent);
  }
}
.chat-card .try {
  align-self: flex-start;
  margin-top: 0.2rem;
}

/* Beweis + Funktionen */
.proof-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .proof-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
}
.big-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.big-number em { font-style: normal; color: var(--copper-strong); }
.fn-list { display: grid; gap: 1.6rem; }
@media (min-width: 600px) {
  .fn-list { grid-template-columns: 1fr 1fr; }
}
.fn-list h3 { margin-bottom: 0.3em; }
.fn-list p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Datenschutz */
.ds-rows { margin-top: 2.2rem; display: grid; gap: 1.7rem; max-width: 760px; }
.ds-row { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.9rem; align-items: start; }
.ds-row svg { margin-top: 0.3rem; flex-shrink: 0; }
.ds-row h3 { margin-bottom: 0.2em; }
.ds-row p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* Preise */
.price-scroll { overflow-x: auto; margin-top: 2.2rem; }
table.prices {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prices th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 0 1.2rem 0.8rem 0;
  border-bottom: 1px solid var(--panel-edge);
}
.prices td {
  padding: 1.3rem 1.2rem 1.3rem 0;
  vertical-align: top;
}
.prices tr + tr td { border-top: 1px solid var(--panel-edge); }
.prices .plan { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.prices .plan small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.prices .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; white-space: nowrap; }
.prices .amount small { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--text-muted); }
.prices .detail { color: var(--text-muted); font-size: 0.9rem; max-width: 34ch; }
.price-note { color: var(--text-faint); font-size: 0.85rem; margin-top: 1.4rem; }
.preis-cta { margin-top: 0.9rem; }

/* Unter 720px bricht die Preistabelle in Karten um, sonst laege der
   Buchen-Knopf hinter dem Seitwaerts-Scroll. */
@media (max-width: 720px) {
  .price-scroll { overflow-x: visible; }
  table.prices { min-width: 0; display: block; font-size: 1rem; }
  .prices thead { display: none; }
  .prices tbody { display: grid; gap: 1rem; }
  .prices tr {
    display: block;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius-panel);
    padding: 1.3rem;
  }
  .prices tr + tr td { border-top: none; }
  .prices td { display: block; padding: 0; }
  .prices td + td { margin-top: 1rem; }
  .prices .detail { max-width: none; }
  .prices .detail::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 0.35rem;
  }
  .preis-cta { display: flex; width: 100%; justify-content: center; }
}

/* WhatsApp-Einstieg im Demo-Bereich */
.wa-einstieg { margin: 1.6rem 0 1.2rem; }
.wa-link { color: var(--text); }
.wa-link svg { color: #4aa06a; flex-shrink: 0; }
.wa-link:hover svg { color: #5cbb7e; }
.wa-hinweis {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 0.7rem;
  max-width: 46ch;
}

/* Häufige Fragen */
.faq { margin-top: 2.2rem; max-width: 760px; display: grid; gap: 0.7rem; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-panel);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--copper-strong);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--copper-strong); }
.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 68ch;
}

/* Demo */
.demo-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start; }
  .demo-copy { position: sticky; top: 100px; }
}
.demo-suggestions { display: grid; gap: 0.5rem; margin: 1.4rem 0; }
.demo-suggestions span {
  color: var(--text);
  font-size: 0.95rem;
}
.demo-suggestions span::before { content: "\201E"; color: var(--copper-strong); }
.demo-suggestions span::after { content: "\201C"; color: var(--copper-strong); }
#lina-hinweis {
  display: none;
  background: color-mix(in srgb, var(--copper) 14%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--copper) 35%, var(--panel-edge));
  border-radius: var(--radius-panel);
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
#lina-hinweis.show { display: block; }
#lina-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--copper-strong);
  margin-bottom: 0.6rem;
}
#lina-status .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper-strong);
}
@media (prefers-reduced-motion: no-preference) {
  #lina-status .pulse {
    animation: pulse 2s ease-out infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--copper-strong) 55%, transparent); }
    70% { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }
}

/* Tipp-Anzeige im Hero-Gespraech */
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.85rem 1rem;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: tip 1s infinite; }
  .typing i:nth-child(2) { animation-delay: 0.18s; }
  .typing i:nth-child(3) { animation-delay: 0.36s; }
  @keyframes tip {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
  }
}
.widget-shell {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-panel);
  padding: 0.75rem;
  min-height: 560px;
}
.widget-fallback {
  color: var(--text-faint);
  font-size: 0.9rem;
  padding: 1rem;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--panel-edge);
  padding: 3rem 0 3.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-grid .claim { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 2rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Rechtsseiten ---------- */
.legal { padding: 4rem 0 6rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--text-muted); max-width: 70ch; }
.legal strong { color: var(--text); }

/* ---------- Einblendungen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.on { opacity: 1; transform: none; }
  .chat .bubble {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .chat.play .bubble { opacity: 1; transform: none; }
  .chat.play .bubble:nth-child(2) { transition-delay: 0.1s; }
  .chat.play .bubble:nth-child(3) { transition-delay: 0.55s; }
  .chat.play .bubble:nth-child(4) { transition-delay: 1s; }
  .chat.play .bubble:nth-child(5) { transition-delay: 1.45s; }
}

/* Footer-Spalten */
.footer-spalten { display: flex; flex-wrap: wrap; gap: 2.8rem; }
.footer-block { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.footer-block a { color: var(--text-muted); }
.footer-block a:hover { color: var(--text); }
.footer-block .btn { margin-top: 0.1rem; }
.footer-titel { color: var(--text-faint); font-size: 0.8rem; }
