/* Die Website trade-analyzer.com, nach der Website von market-dashboard. Die Farben sind die hellen Werte aus
   public/tokens.css der App; die Website lädt nichts von Dritten und ist immer hell, wie die Rechtsseiten. */

:root {
  color-scheme: light;
  --ink: #1d2330;
  --muted: #667085;
  --quiet: #98a2b3;
  --hairline: #e4e7ec;
  --hairline-strong: #d0d5dd;
  --surface: #ffffff;
  --wash: #f6f7f9;
  --inset: #f0f2f5;
  --accent: #2f5bd3;
  --accent-strong: #2549b0;
  --accent-wash: color-mix(in srgb, var(--accent) 8%, #ffffff);
  --accent-border: color-mix(in srgb, var(--accent) 35%, transparent);
  --brand-mark: #785137;
  --font-data: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page-width: 1200px;
  --copy-width: 640px;
  --radius-large: 28px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  color: var(--brand-mark);
}

/* Die Wortmarke wie in der App: „Trade“ fett, „Analyzer“ normal */
.wordmark {
  color: var(--ink);
  font: 400 19px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.wordmark b {
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header nav .nav-lang {
  padding: 4px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Die Sprachwahl wie in der App (public/style.css: .field, .field-select): zeigt die aktuelle Sprache */
.site-header .language-select { display: inline-flex; }
.site-header .field-select {
  height: 34px;
  max-width: 100%;
  padding: 0 32px 0 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.05);
  color: var(--ink);
  font: 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.site-header .field-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header nav .nav-app {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.site-header nav .nav-app:hover {
  color: #ffffff;
  background: #343c4d;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
}

.button-secondary:hover {
  background: var(--wash);
}

/* Die Plan-Abzeichen der App: eine kleine Pille mit dem Namen des Plans, Plus und Pro im Akzent */

.badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  padding: 0 6px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font: 600 11px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.badge-pro {
  border-color: var(--accent-border);
  background: var(--accent-wash);
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 96px max(24px, calc((100vw - var(--page-width)) / 2)) 112px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-wash) 0%, var(--surface) 560px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.hero-subtitle {
  max-width: 700px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Für wen */

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--page-width)) / 2));
}

.audience > div {
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--wash);
}

.audience h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.audience p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* Funktionen: Text links, rechts eine Karte mit dem, was die Seite der App zeigt */

.features {
  display: grid;
  gap: 120px;
  padding: 140px max(24px, calc((100vw - var(--page-width)) / 2));
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.feature-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.feature-copy p a,
.plan li a,
.pricing-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.1);
}

.feature-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--wash);
  font-size: 15px;
  font-weight: 650;
}

.feature-card ul {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.feature-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
}

.feature-card li:first-child {
  border-top: 0;
}

.feature-card li span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

/* Die Beispielfrage an den KI-Assistenten */
.feature-chat {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.feature-chat p {
  max-width: 85%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 16px;
}

.feature-chat .chat-question {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--ink);
  color: #ffffff;
}

.feature-chat .chat-tool {
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 4px;
  background: var(--wash);
  color: var(--muted);
  font: 14px/1.5 var(--font-data);
}

/* Preise */

.pricing {
  padding: 120px max(24px, calc((100vw - var(--page-width)) / 2));
  background: var(--wash);
}

.section-heading {
  max-width: var(--copy-width);
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.plan-pro {
  border: 2px solid var(--accent);
}

.plan h3 {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

/* Im Plan selbst steht das Abzeichen groß, als sein Name */
.plan h3 .badge {
  padding: 2px 14px;
  font-size: 20px;
  font-weight: 700;
}

.plan-tagline {
  margin: 8px 0 0;
  color: var(--muted);
}

.plan-price {
  margin: 24px 0 0;
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.plan-price small {
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-alternative {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.plan li {
  position: relative;
  padding-left: 28px;
}

.plan li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-wash)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%232f5bd3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  content: "";
}

.plan .button {
  margin-top: auto;
}

.pricing-note {
  max-width: 880px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Abschluss */

.closing {
  padding: 140px 24px;
  text-align: center;
}

.closing h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.closing .button {
  margin-top: 36px;
}

/* Rechtsseiten und die Anleitung zur KI-Verbindung */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-hero p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.legal-content .legal-updated {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-content section {
  margin-top: 40px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 650;
}

.legal-content p,
.legal-content li {
  color: #2c3241;
  font-size: 16px;
  line-height: 1.65;
}

.legal-content p {
  margin: 0 0 12px;
  overflow-wrap: break-word;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-content a {
  color: var(--accent);
}

.manual-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--inset);
  font: 14px/1.5 var(--font-data);
  overflow-wrap: anywhere;
}

.manual-content pre {
  overflow-x: auto;
  margin: 12px 0;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--wash);
  font: 14px/1.55 var(--font-data);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.manual-content pre code {
  padding: 0;
  background: none;
}

.manual-spec {
  overflow: hidden;
  margin: 20px 0 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.manual-spec > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--hairline);
}

.manual-spec > div:first-child {
  border-top: 0;
}

.manual-spec dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.manual-spec dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.manual-steps {
  margin: 16px 0 0;
  padding: 0 !important;
  counter-reset: manual-step;
  list-style: none;
}

.manual-steps li {
  position: relative;
  padding: 0 0 20px 44px;
}

.manual-steps li:last-child {
  padding-bottom: 0;
}

.manual-steps li::before {
  content: counter(manual-step);
  counter-increment: manual-step;
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.manual-content strong {
  color: var(--ink);
  font-weight: 650;
}

.manual-content ul + p {
  margin-top: 16px;
}

/* Fußzeile */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 40px max(24px, calc((100vw - var(--page-width)) / 2));
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-brand .wordmark {
  font-size: 16px;
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.footer-meta nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-meta a {
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--ink);
}

.footer-meta p {
  margin: 0;
}

/* Tablets */

@media (max-width: 959px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

@media (max-width: 839px) {
  .site-header nav a:not(.nav-app, .nav-lang) {
    display: none;
  }

  .site-header nav {
    gap: 12px;
  }

  .audience {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .features {
    gap: 96px;
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* Telefone */

@media (max-width: 599px) {
  .site-header {
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand .wordmark {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
  }

  .site-header nav .nav-app {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero {
    padding: 64px 16px 80px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .audience,
  .features,
  .pricing {
    padding-right: 16px;
    padding-left: 16px;
  }

  .audience > div {
    padding: 24px;
  }

  .plan {
    padding: 28px 24px;
  }

  .pricing,
  .closing {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .legal-main {
    padding: 48px 16px 96px;
  }

  .manual-spec > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  footer,
  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .footer-meta nav {
    justify-content: flex-start;
  }
}

/* Auf schmalen Telefonen trägt das Icon allein die Marke, damit Sprachwahl und „Zur App“ Platz haben */
@media (max-width: 420px) {
  .site-header .brand .wordmark {
    display: none;
  }
}
