/* ==========================================================================
   moTrade – mobile only SI GmbH | Marketing Website
   Stylesheet (mobile-first, responsive)
   ========================================================================== */

:root {
  /* Branding – abgeleitet aus der moTrade App */
  --mo-blue:        #1976d2;
  --mo-blue-dark:   #145ea8;
  --mo-blue-darker: #0d3f73;
  --mo-blue-light:  #e3f2fd;
  --mo-blue-50:     #f4f9ff;

  --mo-ink:         #1c2430;
  --mo-gray-900:    #2b3441;
  --mo-gray-700:    #4b4b4b;
  --mo-gray-500:    #6b7684;
  --mo-gray-300:    #d6dce4;
  --mo-gray-200:    #e0e0e0;
  --mo-gray-100:    #f5f7fa;
  --mo-white:       #ffffff;

  --mo-accent:      #ff8500;
  --mo-green:       #2e7d32;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 3px rgba(16,38,66,.08), 0 1px 2px rgba(16,38,66,.06);
  --shadow-md:   0 6px 18px rgba(16,38,66,.10);
  --shadow-lg:   0 18px 40px rgba(16,38,66,.16);
  --maxw:        1160px;
  --gutter:      clamp(1rem, 4vw, 2rem);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--mo-ink);
  background: var(--mo-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mo-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--mo-gray-900); margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p  { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tint { background: var(--mo-blue-50); }
.section--ink  { background: linear-gradient(160deg, var(--mo-blue-darker), var(--mo-blue-dark)); color: #eaf3fb; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--mo-blue-dark);
  background: var(--mo-blue-light); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.section--ink .eyebrow { color: #fff; background: rgba(255,255,255,.14); }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--mo-gray-700); }
.section--ink .lead { color: #cfe4f6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--mo-blue); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--mo-blue-dark); }
.btn--ghost { background: transparent; color: var(--mo-blue-dark); border-color: var(--mo-gray-300); }
.btn--ghost:hover { border-color: var(--mo-blue); color: var(--mo-blue-dark); }
.btn--light { background: #fff; color: var(--mo-blue-dark); }
.btn--light:hover { background: var(--mo-blue-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--mo-gray-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.28rem; color: var(--mo-gray-900); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span b { color: var(--mo-blue); }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--mo-gray-700); font-weight: 550; padding: .5rem .8rem; border-radius: 8px; }
.nav-links a:hover { color: var(--mo-blue-dark); background: var(--mo-blue-50); text-decoration: none; }
.nav-cta { margin-left: .4rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--mo-gray-900); margin: 5px auto; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--mo-gray-200); padding: .5rem var(--gutter) 1.2rem;
    gap: .1rem; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .6rem; border-bottom: 1px solid var(--mo-gray-100); }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, #fff 0%, var(--mo-blue-50) 60%, var(--mo-blue-light) 100%); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.pill { font-size: .8rem; font-weight: 600; color: var(--mo-blue-dark); background: #fff; border: 1px solid var(--mo-gray-200); padding: .35rem .75rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hero h1 span { color: var(--mo-blue); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--mo-gray-200); }
.hero__media figcaption { margin-top: .6rem; font-size: .85rem; color: var(--mo-gray-500); text-align: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Stat / trust bar ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--mo-gray-200); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 1.7rem; color: var(--mo-blue-dark); line-height: 1.1; }
.stat span { color: var(--mo-gray-500); font-size: .92rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Feature cards (4 Säulen) ---------- */
.cards { display: grid; gap: 1.2rem; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.cards--4 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--mo-gray-200); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mo-blue-light); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mo-blue-light); color: var(--mo-blue-dark); margin-bottom: 1rem;
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--mo-gray-700); font-size: .96rem; }
.card ul li { margin-bottom: .35rem; }

/* ---------- Split feature rows ---------- */
.split { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.split + .split { margin-top: clamp(2.5rem, 6vw, 4rem); }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--mo-gray-200); }
.split ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.split ul li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--mo-gray-700); }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px;
  background: var(--mo-blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231976d2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
  border-radius: 6px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: 2; }
}

/* ---------- Screenshot gallery ---------- */
.gallery { display: grid; gap: 1.1rem; }
@media (min-width: 640px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--mo-gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery img { aspect-ratio: 16/10; object-fit: cover; object-position: top left; width: 100%; background: var(--mo-gray-100); }
.gallery figcaption { padding: .8rem 1rem; font-size: .92rem; color: var(--mo-gray-700); font-weight: 550; }

/* ---------- Integrations logos/chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { background: #fff; border: 1px solid var(--mo-gray-200); border-radius: 999px; padding: .55rem 1.05rem; font-weight: 600; color: var(--mo-gray-700); box-shadow: var(--shadow-sm); }
.section--ink .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }

/* ---------- Editions matrix table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--mo-gray-200); box-shadow: var(--shadow-sm); }
table.matrix { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
table.matrix th, table.matrix td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--mo-gray-200); }
table.matrix thead th { background: var(--mo-blue-dark); color: #fff; font-weight: 650; }
table.matrix thead th:not(:first-child) { text-align: center; }
table.matrix td:not(:first-child) { text-align: center; font-weight: 700; }
table.matrix tbody tr:nth-child(even) { background: var(--mo-blue-50); }
table.matrix .yes { color: var(--mo-green); }
table.matrix .no  { color: var(--mo-gray-300); }
table.matrix caption { caption-side: bottom; padding-top: .8rem; font-size: .85rem; color: var(--mo-gray-500); text-align: left; }

/* ---------- Hosting / two-up ---------- */
.duo { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .duo { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; margin-top: 1.4rem; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--mo-gray-200); border-radius: var(--radius); margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 650; color: var(--mo-gray-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mo-blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--mo-blue-dark); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--mo-gray-700); }
.faq .faq-body ul { padding-left: 1.1rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--mo-gray-200); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--mo-gray-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--mo-ink);
  border: 1px solid var(--mo-gray-300); border-radius: 10px; background: var(--mo-gray-100);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mo-blue); background: #fff; box-shadow: 0 0 0 3px var(--mo-blue-light);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; color: var(--mo-gray-500); }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.info-list .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--mo-blue-light); color: var(--mo-blue-dark); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list b { display: block; color: var(--mo-gray-900); }
.info-list span, .info-list a { color: var(--mo-gray-700); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2rem; padding-top: .4rem; }
.prose h3 { margin-top: 1.6rem; color: var(--mo-blue-dark); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .muted { color: var(--mo-gray-500); font-size: .9rem; }
.page-hero { background: var(--mo-blue-50); border-bottom: 1px solid var(--mo-gray-200); }
.page-hero .container { padding-block: clamp(2rem, 6vw, 3.4rem); }
.breadcrumb { font-size: .88rem; color: var(--mo-gray-500); margin-bottom: .6rem; }
.breadcrumb a { color: var(--mo-gray-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mo-gray-900); color: #c4cdd8; padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem; margin-top: 0; }
.site-footer a { color: #c4cdd8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .8rem; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.4rem; font-size: .85rem; color: #93a1b1; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Logo Grid ---------- */
.logo-grid { display: grid !important; gap: 0.5rem !important; grid-template-columns: repeat(8, 1fr) !important; }
.logo-grid figure { margin: 0 !important; padding: 0.5rem !important; display: flex !important; align-items: center !important; justify-content: center !important; background: #fff !important; border: 1px solid var(--mo-gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.logo-grid figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-grid img { width: 100% !important; height: auto !important; max-height: 70px !important; object-fit: contain !important; padding: 5px !important; }
