/* AgentChat Landingpage. Mobil zuerst, keine Build-Tools. */

:root {
  --nacht: #0f1226;      /* Hintergrund */
  --flaeche: #181c38;    /* Karten, Chat */
  --flaeche-2: #222750;  /* Blasen, Hover */
  --linie: #2e3463;
  --text: #f2f1fa;
  --leise: #a6a9c8;
  --akzent: #8b7cff;     /* Violett, einziger Hauptakzent */
  --sticker: #ffd84d;    /* Kommentar-Wort, sparsam */
  --ig: linear-gradient(135deg, #feda75 0%, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5 100%);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-gross: 22px;
  --r-mittel: 14px;
  --r-klein: 8px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 6vw, 3.25rem); max-width: 18ch; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--sticker); outline-offset: 3px; border-radius: 4px; }

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

.rahmen { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.rahmen-schmal { max-width: 780px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--akzent); color: var(--nacht);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease;
}
.knopf:hover { background: #a194ff; }
.knopf:active { transform: scale(.98); }
.knopf-klein { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

.textlink { color: var(--leise); font-weight: 500; text-underline-offset: 4px; }
.textlink:hover { color: var(--text); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: rgba(15, 18, 38, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(46, 52, 99, .6); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.marke-zeichen { width: 30px; height: 30px; color: var(--akzent); }
.kopf-nav { display: flex; align-items: center; gap: 24px; }
.kopf-nav a:not(.knopf) { text-decoration: none; color: var(--leise); font-size: .9375rem; font-weight: 500; }
.kopf-nav a:not(.knopf):hover { color: var(--text); }
.nur-breit { display: none; }

/* Hero */
.held { padding: 44px 0 64px; position: relative; overflow: hidden; }
.held::before {
  /* Ein einziger Hauch Instagram-Verlauf hinter der Demo */
  content: ""; position: absolute; right: -20%; top: 30%; width: 70vw; height: 70vw; max-width: 720px; max-height: 720px;
  background: var(--ig); filter: blur(120px); opacity: .16; pointer-events: none; z-index: 0;
}
.held-raster { position: relative; z-index: 1; display: grid; gap: 48px; }
.held-vorzeile { color: var(--leise); font-weight: 500; margin-bottom: 16px; }
.held h1 { font-size: clamp(2.6rem, 11vw, 5.25rem); line-height: .98; letter-spacing: -0.035em; max-width: 13ch; }
.held-unterzeile { margin-top: 22px; color: #d3d4e8; font-size: 1.125rem; max-width: 34em; }
.held-aktionen { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.held-aktionen .knopf { width: 100%; }
.held-klein { margin-top: 14px; color: var(--leise); font-size: .875rem; }

.kompatibel { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--linie); }
.kompatibel p { color: var(--leise); font-size: .875rem; margin-bottom: 10px; }
.kompatibel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kompatibel li { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--text); }

/* Demo */
.demo { position: relative; padding-bottom: 190px; scroll-margin-top: 80px; }
.chatfenster { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.chat-leiste { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linie); font-weight: 600; font-size: .9375rem; }
.chat-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); }
.chat-verbunden { margin-left: auto; font-weight: 500; font-size: .8125rem; color: #9fe3b8; display: inline-flex; align-items: center; gap: 6px; }
.chat-verbunden::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; }
.chat-verlauf { padding: 20px 16px 22px; display: flex; flex-direction: column; gap: 14px; }

.blase { border-radius: 18px; padding: 12px 16px; font-size: 1rem; line-height: 1.5; max-width: 92%; }
.blase-du { align-self: flex-end; background: var(--akzent); color: var(--nacht); border-bottom-right-radius: 6px; font-weight: 500; }
.blase-agent { align-self: flex-start; background: var(--flaeche-2); border-bottom-left-radius: 6px; }

.werkzeug { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px dashed var(--linie); border-radius: 999px; color: var(--leise); font-size: .8125rem; }
.werkzeug svg { width: 14px; height: 14px; color: #5fd38d; }
.werkzeug code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8125rem; }

.ergebnis { margin: 12px 0 0; display: grid; gap: 1px; background: var(--linie); border-radius: var(--r-klein); overflow: hidden; }
.ergebnis div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #1c2145; font-size: .875rem; }
.ergebnis dt { color: var(--leise); }
.ergebnis dd { margin: 0; text-align: right; font-weight: 600; }
.wort { display: inline-block; background: var(--sticker); color: var(--nacht); font-weight: 800; padding: 0 8px; border-radius: 6px; transform: rotate(-2deg); }

/* Kleine Instagram-Vorschau, überlappt das Chatfenster */
.dm-vorschau {
  position: absolute; right: 8px; bottom: 0; width: min(280px, 82%);
  background: #fff; color: #111; border-radius: 18px; padding: 14px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .65);
  font-size: .875rem; line-height: 1.4; overflow: hidden;
}
.dm-vorschau::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 18px 18px 0 0; background: var(--ig); }
.dm-kopf { font-weight: 700; font-size: .75rem; color: #6b6b7b; margin-bottom: 8px; }
.dm-kommentar b { font-weight: 700; margin-right: 4px; }
.dm-antwort { margin: 4px 0 10px 14px; padding-left: 10px; border-left: 2px solid #e5e5ee; color: #444; }
.dm-nachricht { background: #efeff4; border-radius: 14px; padding: 10px 12px; }
.dm-button { display: block; margin-top: 8px; text-align: center; background: #fff; border-radius: 10px; padding: 7px; font-weight: 600; color: #3b5bdb; }

/* Abschnitte */
.abschnitt { padding: 72px 0; border-top: 1px solid rgba(46, 52, 99, .55); }
.einleitung { margin-top: 18px; color: var(--leise); font-size: 1.125rem; max-width: 36em; }

/* Vorher / Jetzt */
.vorher-raster { display: grid; gap: 36px; }
.vergleich-karten { display: grid; gap: 14px; }
.karten-titel { color: var(--leise); font-size: .875rem; font-weight: 500; margin-bottom: 12px; }
.kopienliste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-mittel); padding: 18px 18px 14px; }
.kopienliste ul { list-style: none; margin: 0; padding: 0; }
.kopienliste li { padding: 7px 0; border-top: 1px solid var(--linie); color: var(--leise); text-decoration: line-through; text-decoration-color: rgba(166, 169, 200, .6); font-size: .9375rem; }
.kopienliste li:first-child { border-top: 0; }
.ein-satz { background: var(--akzent); color: var(--nacht); border-radius: var(--r-mittel); padding: 18px 20px 22px; }
.ein-satz .karten-titel { color: rgba(15, 18, 38, .7); }
.ein-satz-text { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }

/* Funktionen */
.kacheln { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; }
.kachel { background: var(--nacht); padding: 24px 22px 26px; }
.nummer { display: block; font-family: var(--display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--akzent); margin-bottom: 18px; letter-spacing: -0.03em; }
.kachel p { margin-top: 10px; color: var(--leise); font-size: 1rem; }

.bald { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px dashed var(--linie); border-radius: var(--r-mittel); color: var(--leise); }
.bald b { color: var(--text); font-weight: 600; }
.bald-marke { flex: none; background: var(--sticker); color: var(--nacht); font-weight: 700; font-size: .8125rem; padding: 2px 10px; border-radius: 999px; margin-top: 2px; }
.weggelassen { margin-top: 18px; color: var(--leise); font-size: .9375rem; }

/* Vergleich */
.tabelle-huelle { margin-top: 36px; border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; }
.tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; line-height: 1.45; }
.sp-merkmal { width: 30%; }
.tabelle th, .tabelle td { padding: 14px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--linie); overflow-wrap: break-word; }
.tabelle thead th { border-top: 0; font-family: var(--display); font-size: 1.0625rem; font-weight: 800; padding-top: 18px; padding-bottom: 14px; }
.tabelle tbody th { font-weight: 600; color: var(--text); }
.tabelle td { color: var(--leise); }
.tabelle .sp-wir { background: rgba(139, 124, 255, .09); color: var(--text); }
.tabelle thead .sp-wir { color: var(--akzent); }
.ja, .nein { display: block; width: 20px; height: 20px; border-radius: 50%; margin-bottom: 6px; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.ja { background-color: #5fd38d; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.5 2.4L10 3.3' fill='none' stroke='%230f1226' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.nein { background-color: #3a3f6e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%23a6a9c8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tabelle sup a { color: var(--akzent); text-decoration: none; font-weight: 700; padding: 0 2px; }
.quelle { margin-top: 14px; color: var(--leise); font-size: .8125rem; max-width: 60em; }
.quelle a { color: var(--leise); }

/* Preise */
.preise { margin-top: 36px; display: grid; gap: 16px; max-width: 760px; }
.preis { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 26px 24px 28px; display: grid; gap: 10px; justify-items: start; }
.preis-hervor { border-color: var(--akzent); }
.preis-marke { display: inline-block; vertical-align: 2px; margin-left: 8px; background: var(--sticker); color: var(--nacht); font-family: var(--body); font-weight: 700; font-size: .8125rem; padding: 2px 10px; border-radius: 999px; letter-spacing: 0; }
.preis-betrag { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; }
.preis-betrag span { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--leise); letter-spacing: 0; margin-left: 4px; }
.preis-text { color: var(--leise); margin-bottom: 8px; }
.preis-klein { margin-top: 16px; color: var(--leise); font-size: .875rem; max-width: 46em; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--akzent); border-bottom: 2px solid var(--akzent); transform: translateY(-75%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--leise); max-width: 40em; }
.faq a { color: var(--text); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Abschluss */
.schluss { padding: 80px 0 88px; background: var(--akzent); color: var(--nacht); }
.schluss-innen { display: grid; gap: 28px; justify-items: start; }
.schluss h2 { max-width: 14ch; }
.schluss .knopf { background: var(--nacht); color: var(--text); width: 100%; }
.schluss .knopf:hover { background: #1d2246; }

/* Fuß */
.fuss { padding: 32px 0 40px; color: var(--leise); font-size: .875rem; }
.fuss-innen { display: grid; gap: 14px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss a { color: var(--leise); text-underline-offset: 3px; }
.fuss a:hover { color: var(--text); }

/* Ab Tablet */
@media (min-width: 640px) {
  .rahmen { padding: 0 32px; }
  .held-aktionen .knopf, .schluss .knopf { width: auto; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .vergleich-karten { grid-template-columns: 1fr 1fr; align-items: start; }
  .preise { grid-template-columns: 1fr 1fr; }
  .tabelle { font-size: .9375rem; }
  .tabelle th, .tabelle td { padding: 16px 18px; }
  .ja, .nein { display: inline-block; vertical-align: -4px; margin: 0 8px 0 0; }
  .fuss-innen { grid-template-columns: 1fr auto; align-items: center; }
  .demo { padding-bottom: 170px; }
  .dm-vorschau { right: -12px; }
}

/* Desktop */
@media (min-width: 1000px) {
  .nur-breit { display: inline; }
  .held { padding: 80px 0 104px; }
  .held-raster { grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
  .vorher-raster { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: end; }
  .kacheln { grid-template-columns: repeat(4, 1fr); }
  .kachel { padding: 28px 24px 32px; }
  .abschnitt { padding: 104px 0; }
  .schluss-innen { grid-template-columns: 1fr auto; align-items: end; }
  .dm-vorschau { right: -36px; }
}
