/* ==========================================================================
   FXdispatcher – Produkt-Website
   Design-System (statisch, keine externen Fonts/Tracker → DSGVO-freundlich)
   ========================================================================== */

:root {
  --navy: #0e2238;
  --navy-2: #14304f;
  --ink: #1c2a3a;
  --muted: #56697e;
  --brand: #1e5bd6;
  --brand-600: #1a4fbe;
  --brand-050: #eef3fd;
  --accent: #13a8b8;
  --accent-050: #e7f7f9;
  --success: #15a36a;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e3e9f1;
  --shadow-sm: 0 1px 2px rgba(14, 34, 56, .06), 0 2px 8px rgba(14, 34, 56, .05);
  --shadow-md: 0 10px 30px rgba(14, 34, 56, .10);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.bg-white { background: var(--surface); }
.bg-navy { background: var(--navy); color: #dbe6f3; }
.bg-soft { background: linear-gradient(180deg, #eef3fb 0%, var(--bg) 100%); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 56ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-050); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.bg-navy .eyebrow { color: #9ec3ff; background: rgba(158,195,255,.12); }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { background: #fff; border-color: #cdd8e6; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef3fd; color: var(--brand-600); }
.btn--lg { padding: 16px 28px; font-size: 1.06rem; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.18rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand b { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: .9rem; color: var(--muted); font-weight: 600; }
.lang-switch a { color: var(--muted); padding: 2px 4px; }
.lang-switch a.is-active { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); margin: 3px auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 84px; background: radial-gradient(1100px 500px at 80% -10%, #e6efff 0%, rgba(230,239,255,0) 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.28rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { margin-top: 26px; color: var(--muted); font-size: .92rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }

/* Workflow visual card */
.flow-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px; }
.flow-card h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.flow-step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.flow-step:last-child { border-bottom: 0; }
.flow-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); font-weight: 800; }
.flow-step.is-accent .flow-ico { background: var(--accent-050); color: var(--accent); }
.flow-step b { color: var(--navy); display: block; }
.flow-step small { color: var(--muted); }

/* Grid helpers */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); height: 100%; }
.card .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card--accent .ico { background: var(--accent-050); color: var(--accent); }

/* Steps (numbered) */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 24px 76px; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; background: var(--navy); color: #fff; border-radius: 10px; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.bg-soft .stat .num, .bg-white .stat .num { color: var(--navy); }
.stat .lbl { color: #9fb6cf; font-size: .98rem; }
.bg-soft .stat .lbl, .bg-white .stat .lbl { color: var(--muted); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split-media { order: 2; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border-radius: 20px; padding: 50px; text-align: center; color: #dbe6f3; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #b9cbe0; margin-left: auto; margin-right: auto; }

/* Forms */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fcfdff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; display: none; }
.form-status.ok { display: block; background: #e8f7ef; color: #0f7a4f; border: 1px solid #b7e6cd; }
.form-status.err { display: block; background: #fdecec; color: #b3261e; border: 1px solid #f3c2bf; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb6cf; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h5 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.site-footer a { color: #b9cbe0; display: block; padding: 4px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #8fa8c2; font-size: .94rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #7e96b1; }

/* Legal / prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink); }
.prose a { word-break: break-word; }
.prose ul { padding-left: 20px; }

/* Page hero (subpages) */
.page-hero { padding: 56px 0 12px; }
.page-hero .eyebrow { margin-bottom: 12px; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border-bottom: 1px solid var(--border); padding: 14px 22px; box-shadow: var(--shadow-md); }
  .site-header.open .nav-links a { padding: 10px 0; width: 100%; }
  .grid-2, .grid-3, .grid-4, .stats, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .cta-band { padding: 34px 22px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
