/* AgentChat Landingpage. Mobil zuerst, keine Build-Tools.
   Farben, Schrift, Abstände und Komponenten kommen aus tokens.css und components.css.
   Hier steht nur, was es nur auf der Landingpage gibt. */

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

body { font-size: 1.0625rem; }

h2 { font-size: var(--type-h1); max-width: 18ch; }
h3 { font-size: 1.25rem; }

.rahmen { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.rahmen-schmal { max-width: 780px; }

/* Kopf */
.kopf-nav { gap: var(--space-6); }
.nur-breit { display: none; }

/* Hero */
.held { padding: var(--space-12) 0 var(--space-16); }
.held-raster { display: grid; gap: var(--space-12); }
.held-vorzeile { color: var(--text-muted); font-weight: var(--weight-medium); margin-bottom: var(--space-4); }
.held h1 {
  font-size: var(--type-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); max-width: 13ch;
  text-wrap: balance;
}
.held-unterzeile { margin-top: var(--space-6); color: var(--text-soft); font-size: var(--type-body-lg); max-width: 34em; }
.held-aktionen { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: 14px var(--space-6); }
.held-aktionen .btn { width: 100%; }
.held-installieren { margin-top: var(--space-6); }
.held-installieren .copy { margin-top: var(--space-2); }
.held-klein { margin-top: 14px; color: var(--text-muted); font-size: var(--text-sm); }

.kompatibel { margin-top: var(--space-10); padding-top: var(--space-5); border-top: var(--border-width) solid var(--border); }
.kompatibel p { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: 10px; }
.kompatibel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) 22px; }
.kompatibel li { font-weight: var(--weight-medium); font-size: var(--text-md); color: var(--text-soft); }

/* Demo: Chat (Komponente .chat) plus Instagram-Vorschau darüber */
.demo { position: relative; padding-bottom: 190px; scroll-margin-top: 80px; }

/* Kleine Instagram-Vorschau. Bewusst immer hell wie die echte App, daher feste Farben. */
.dm-vorschau {
  position: absolute; right: var(--space-2); bottom: 0; width: min(280px, 82%);
  background: #ffffff; color: #18181b; border-radius: var(--radius-lg); padding: 14px;
  border: 1px solid #e4e7ec; box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
  font-size: var(--text-sm); line-height: 1.4; overflow: hidden;
}
.dm-kopf { font-weight: var(--weight-semibold); font-size: var(--text-xs); color: #5b6474; margin-bottom: var(--space-2); }
.dm-kommentar b { font-weight: var(--weight-bold); margin-right: var(--space-1); }
.dm-antwort { margin: var(--space-1) 0 10px 14px; padding-left: 10px; border-left: 2px solid #e4e7ec; color: #344054; }
.dm-nachricht { background: #f2f4f7; border-radius: var(--radius-lg); padding: 10px 12px; }
.dm-button { display: block; margin-top: var(--space-2); text-align: center; background: #ffffff; border: 1px solid #e4e7ec; border-radius: var(--radius-control); padding: 7px; font-weight: var(--weight-semibold); color: #18181b; }

/* Abschnitte */
.abschnitt { padding: 72px 0; border-top: var(--border-width) solid var(--border); }
.einleitung { margin-top: 18px; color: var(--text-muted); font-size: var(--type-body-lg); max-width: 36em; }

/* Vorher / Jetzt */
.vorher-raster { display: grid; gap: 36px; }
.vergleich-karten { display: grid; gap: 14px; }
.karten-titel { color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-3); }
.kopienliste { background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-md); padding: 18px 18px 14px; }
.kopienliste ul { list-style: none; margin: 0; padding: 0; }
.kopienliste li { padding: 7px 0; border-top: var(--border-width) solid var(--border); color: var(--text-muted); text-decoration: line-through; text-decoration-color: currentColor; font-size: 0.9375rem; }
.kopienliste li:first-child { border-top: 0; }
.ein-satz { background: var(--bg); color: var(--text); border: var(--border-width) solid var(--text); border-radius: var(--radius-md); padding: 18px var(--space-5) 22px; }
.ein-satz-text { font-weight: var(--weight-semibold); font-size: var(--text-xl); line-height: 1.25; letter-spacing: var(--tracking-tight); }

/* Funktionen */
.kacheln { list-style: none; margin: var(--space-10) 0 0; padding: 0; display: grid; gap: var(--space-px); background: var(--border); border: var(--border-width) solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.kachel { background: var(--bg); padding: var(--space-6) 22px 26px; }
.nummer { display: block; font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1; color: var(--text-muted); margin-bottom: var(--space-4); }
.kachel p { margin-top: 10px; color: var(--text-muted); font-size: var(--text-base); }

.bald { margin-top: var(--space-5); display: flex; gap: 14px; align-items: flex-start; padding: var(--space-4) 18px; border: var(--border-width) dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-muted); }
.bald b { color: var(--text); font-weight: var(--weight-semibold); }
.bald .sticker { flex: none; margin-top: 2px; }
.weggelassen { margin-top: 18px; color: var(--text-muted); font-size: 0.9375rem; }

/* Vergleich */
.tabelle-huelle { margin-top: 36px; border: var(--border-width) solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--text-sm); line-height: 1.45; }
.sp-merkmal { width: 30%; }
.tabelle th, .tabelle td { padding: 14px 10px; text-align: left; vertical-align: top; border-top: var(--border-width) solid var(--border); overflow-wrap: break-word; }
.tabelle thead th { border-top: 0; font-size: var(--text-base); font-weight: var(--weight-semibold); padding-top: 18px; padding-bottom: 14px; background: var(--surface); }
.tabelle tbody th { font-weight: var(--weight-semibold); color: var(--text); }
.tabelle td { color: var(--text-muted); }
.tabelle .sp-wir { color: var(--text); }
.ja, .nein { display: block; position: relative; width: 20px; height: 20px; border-radius: 50%; margin-bottom: 6px; }
.ja::before, .nein::before { content: ""; position: absolute; inset: 0; -webkit-mask: var(--zeichen) center / 12px no-repeat; mask: var(--zeichen) center / 12px no-repeat; }
.ja { background: var(--success-surface); box-shadow: inset 0 0 0 1px var(--success-border); }
.ja::before { background: var(--success-text); --zeichen: 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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.nein { background: var(--neutral-surface); box-shadow: inset 0 0 0 1px var(--neutral-border); }
.nein::before { background: var(--text-muted); --zeichen: 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='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tabelle sup a { color: var(--link); font-weight: var(--weight-semibold); padding: 0 2px; }
.quelle { margin-top: 14px; color: var(--text-muted); font-size: 0.8125rem; max-width: 60em; }
.quelle a { color: var(--text-muted); }

/* Preise */
.preise { margin-top: 36px; display: grid; gap: var(--space-4); max-width: 760px; }
.preis { background: var(--bg); border: var(--border-width) solid var(--border); border-radius: var(--radius-md); padding: 26px var(--space-6) var(--space-7); display: grid; gap: 10px; justify-items: start; }
.preis-hervor { border-color: var(--text); }
.preis h3 .sticker { vertical-align: 2px; margin-left: var(--space-2); font-family: var(--font-body); letter-spacing: 0; }
.preis-betrag { font-weight: var(--weight-semibold); font-size: var(--text-3xl); line-height: 1; letter-spacing: var(--tracking-heading); }
.preis-betrag span { font-family: var(--font-body); font-weight: var(--weight-medium); font-size: var(--text-base); color: var(--text-muted); letter-spacing: 0; margin-left: var(--space-1); }
.preis-text { color: var(--text-muted); margin-bottom: var(--space-2); }
.preis-klein { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--text-sm); max-width: 46em; }

/* FAQ */
.faq { margin-top: var(--space-8); border-top: var(--border-width) solid var(--border); }
.faq details { border-bottom: var(--border-width) solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-5) var(--space-10) var(--space-5) 0; position: relative; font-weight: var(--weight-semibold); font-size: var(--text-md); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: translateY(-75%) rotate(45deg); transition: transform var(--duration-base) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--text-muted); max-width: 40em; }
.faq a { color: var(--text); }

/* Abschluss */
.schluss { padding: var(--space-20) 0 88px; background: var(--surface); border-top: var(--border-width) solid var(--border); }
.schluss h2 { max-width: 16ch; }
.schluss-innen { display: grid; gap: var(--space-7); justify-items: start; }
.schluss .btn { width: 100%; }

/* Fuß */
.fuss { padding: var(--space-8) 0 var(--space-10); color: var(--text-muted); font-size: var(--text-sm); border-top: var(--border-width) solid var(--border); }
.fuss-innen { display: grid; gap: 14px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.fuss a { color: var(--text-muted); }
.fuss a:hover { color: var(--text); }

/* Ab Tablet */
@media (min-width: 640px) {
  .rahmen { padding: 0 var(--space-8); }
  .held-aktionen .btn, .schluss .btn { width: auto; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .kachel:last-child:nth-child(odd) { grid-column: span 2; } /* ungerade Anzahl: keine Lücke in der letzten Reihe */
  .vergleich-karten { grid-template-columns: 1fr 1fr; align-items: start; }
  .preise { grid-template-columns: 1fr 1fr; }
  .tabelle { font-size: 0.9375rem; }
  .tabelle th, .tabelle td { padding: var(--space-4) 18px; }
  .ja, .nein { display: inline-block; vertical-align: -4px; margin: 0 var(--space-2) 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: var(--space-20) 0 104px; }
  .held-raster { grid-template-columns: 1.08fr 0.92fr; gap: var(--space-16); align-items: center; }
  .vorher-raster { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-14); align-items: end; }
  .kacheln { grid-template-columns: repeat(4, 1fr); }
  .kachel { padding: var(--space-7) var(--space-6) var(--space-8); }
  .abschnitt { padding: 104px 0; }
  .schluss-innen { grid-template-columns: 1fr auto; align-items: end; }
  .dm-vorschau { right: -36px; }
}
