/* Startseite und Rechtstexte – baut auf app.css auf */

.site main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 48px 0 40px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    padding: 80px 0 64px;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34ch;
}

.hero-en {
  color: var(--muted);
  font-family: var(--font-voice);
  font-style: italic;
  margin-bottom: 26px;
}

.hero-note {
  margin-top: 16px;
  font-size: var(--step--1);
  color: var(--muted);
}

.hero-venn {
  margin: 0;
  justify-self: center;
  width: min(460px, 100%);
}

.hero-venn svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.venn-a {
  fill: var(--a-soft);
  stroke: var(--a);
  stroke-width: 2;
  animation: venn-a 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.venn-b {
  fill: var(--b-soft);
  stroke: var(--b);
  stroke-width: 2;
  animation: venn-b 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.venn-mid {
  fill: var(--mid);
  animation: venn-mid 1.8s ease-out both;
}

.venn-label {
  font-family: var(--font-voice);
  font-size: 15.5px;
  font-weight: 560;
}

.venn-label-a {
  fill: var(--a-ink);
  animation: venn-a 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.venn-label-b {
  fill: var(--b-ink);
  animation: venn-b 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.venn-label-mid {
  fill: var(--on-mid);
  font-size: 16px;
  animation: venn-mid 2.1s ease-out both;
}

@keyframes venn-a {
  from {
    transform: translateX(-34px);
  }
  to {
    transform: none;
  }
}

@keyframes venn-b {
  from {
    transform: translateX(34px);
  }
  to {
    transform: none;
  }
}

@keyframes venn-mid {
  0%,
  60% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.site section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.site section.hero {
  border-top: 0;
}

.site h2 {
  font-size: var(--step-3);
  margin-bottom: 24px;
}

/* Sprungziele (#demo, #zugang …) nicht unter der festen Kopfzeile verstecken */
.site h2[id] {
  scroll-margin-top: 84px;
}

.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

@media (min-width: 820px) {
  .steps ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 48px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mid-soft);
  color: var(--mid-ink);
  font-family: var(--font-voice);
  font-weight: 600;
}

.steps li:nth-child(1)::before {
  background: var(--a-soft);
  color: var(--a-ink);
}

.steps li:nth-child(2)::before {
  background: var(--b-soft);
  color: var(--b-ink);
}

.steps h3 {
  font-size: var(--step-1);
}

.steps p,
.features dd,
.audiences li,
.honest p {
  color: var(--muted);
  max-width: 60ch;
}

.features dl {
  margin: 0;
  display: grid;
  gap: 0 48px;
}

@media (min-width: 820px) {
  .features dl {
    grid-template-columns: 1fr 1fr;
  }
}

.features dl > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.features dt {
  font-family: var(--font-voice);
  font-size: var(--step-1);
  font-weight: 560;
  margin-bottom: 6px;
}

.features dd {
  margin: 0;
}

.audiences ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.audiences li {
  padding-left: 18px;
  border-left: 3px solid var(--mid);
}

.audiences strong {
  color: var(--ink);
}

.honest {
  max-width: 760px;
}

.honest strong {
  color: var(--ink);
}

/* Einleitung und Hinweis unter Abschnittstiteln */
.section-lead {
  max-width: 62ch;
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.section-note {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* Demos auf den Startseiten (Karten wie in der App, siehe .demo-card in app.css) */
.demos .demo-card h3 {
  font-family: var(--font-voice);
}

/* Vorschau eines Gesprächs */
.preview {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 880px) {
  .preview {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
  }
}

.preview-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.preview-points li {
  padding-left: 18px;
  border-left: 3px solid var(--mid);
  color: var(--muted);
  max-width: 52ch;
}

.preview-points strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-voice);
  font-size: var(--step-1);
  font-weight: 560;
  margin-bottom: 2px;
}

.chat-preview {
  margin: 0;
  padding: 16px 16px 18px;
  border-radius: var(--radius-l);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(28, 38, 34, 0.08);
}

.cp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cp-title {
  font-family: var(--font-voice);
  font-weight: 600;
}

.cp-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cp-msg {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  line-height: 1.45;
}

.cp-name {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
}

.cp-a {
  justify-self: end;
  background: var(--a-soft);
  border-color: var(--a-line);
}

.cp-a .cp-name {
  color: var(--a-ink);
}

.cp-b {
  justify-self: start;
  background: var(--b-soft);
  border-color: var(--b-line);
}

.cp-b .cp-name {
  color: var(--b-ink);
}

.cp-mid {
  justify-self: stretch;
  max-width: none;
  background: var(--surface);
  border-color: var(--mid-line);
  border-top: 3px solid var(--mid);
  font-family: var(--font-voice);
}

.cp-mid .cp-name {
  color: var(--mid-ink);
}

.cp-event {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.cp-doc {
  position: relative;
  padding: 6px 12px 6px 32px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Kleines Blatt als Zeichen für die Unterlage */
.cp-doc::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 13px;
  margin-top: -7px;
  border: 1.5px solid var(--mid-ink);
  border-radius: 2px;
  border-top-right-radius: 5px;
}

.cp-agree {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--mid-soft);
  border: 1px solid var(--mid-line);
  color: var(--mid-ink);
  font-size: 0.9rem;
}

.cp-agree strong {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .cp-thread > li {
    animation: cp-in 0.5s ease-out both;
  }
  .cp-thread > li:nth-child(2) {
    animation-delay: 0.35s;
  }
  .cp-thread > li:nth-child(3) {
    animation-delay: 0.7s;
  }
  .cp-thread > li:nth-child(4) {
    animation-delay: 1.05s;
  }
  .cp-thread > li:nth-child(5) {
    animation-delay: 1.4s;
  }
}

@keyframes cp-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.footer-cross a {
  font-weight: 700;
}

/* Rechtstexte */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.legal h1 {
  margin-bottom: 24px;
}

.legal h2 {
  font-size: var(--step-1);
  margin-top: 28px;
}

.legal .todo {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--b-soft);
  color: var(--b-ink);
  font-weight: 700;
}

.legal .note {
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--b-soft);
  border: 1px solid var(--b-line);
}

.notfound {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 20px;
}
