/* =========================================================
   ARAMIS Factoring GmbH & Co. KG
   Design system — navy + gold, Spectral display / Inter body
   ========================================================= */

:root {
  /* Palette */
  --navy-900: #0a1c38;
  --navy-800: #0e2746;
  --navy-700: #16335f;
  --navy-600: #1f4276;
  --gold:     #c9a227;
  --gold-soft:#e2c873;
  --sky:      #6ba4d9;
  --ink:      #1b2536;
  --slate:    #51607a;
  --line:     #dfe5ee;
  --paper:    #f5f7fa;
  --paper-2:  #eef2f8;
  --white:    #ffffff;

  /* Type */
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 56, .06), 0 4px 14px rgba(10, 28, 56, .05);
  --shadow-md: 0 8px 30px rgba(10, 28, 56, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--navy { background: var(--navy-900); color: #cdd8ea; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section--navy .eyebrow { color: var(--gold-soft); }
.lede { font-size: 1.18rem; color: var(--slate); max-width: 62ch; }
.section--navy .lede { color: #b7c4dc; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* gold hairline — recurring signature device */
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }
.center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 28, 56, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--white); letter-spacing: .02em; }
.brand-sub { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-menu a {
  display: block; padding: .55rem .95rem; font-size: .96rem; font-weight: 500;
  color: #c7d2e6; border-radius: var(--radius); position: relative;
  transition: color .2s var(--ease);
}
.nav-menu a::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after,
.nav-menu a.is-active::after { transform: scaleX(1); }
.nav-menu a.is-active { color: var(--white); }
.nav-cta { margin-left: .8rem; }
.nav-cta .btn { padding: .6rem 1.25rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; background: transparent;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius);
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--white);
  position: relative; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-700) 0%, var(--navy-900) 55%);
  color: var(--white);
  padding: 120px 0 110px;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: #c2cfe6; font-size: 1.28rem; max-width: 54ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust {
  margin-top: 3.2rem; display: flex; flex-wrap: wrap; gap: 2.4rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-trust .stat-num { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--gold-soft); }
.hero-trust .stat-label { font-size: .9rem; color: #9fb0cd; }

/* flowing liquidity lines — the signature motion element */
.flow { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none; }
.flow path { fill: none; stroke-width: 1.4; }
.flow .f1 { stroke: var(--gold); stroke-opacity: .55; stroke-dasharray: 10 14; animation: drift 9s linear infinite; }
.flow .f2 { stroke: var(--sky); stroke-opacity: .35; stroke-dasharray: 6 18; animation: drift 13s linear infinite; }
.flow .f3 { stroke: var(--gold-soft); stroke-opacity: .3; stroke-dasharray: 4 20; animation: drift 17s linear infinite; }
@keyframes drift { to { stroke-dashoffset: -240; } }

/* ---------- Benefit cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.card .ic {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--navy-900); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.card .ic svg { width: 26px; height: 26px; stroke: var(--gold-soft); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--slate); margin-bottom: 0; font-size: .98rem; }

/* split feature row */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: -1; }
.feature-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.4rem; }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(201,162,39,.14); display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.feature-list .tick svg { width: 14px; height: 14px; stroke: var(--gold); }
.feature-list strong { color: var(--navy-900); display: block; }
.feature-list span { color: var(--slate); font-size: .96rem; }

/* media panel — abstract flow illustration */
.panel {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.panel svg { width: 78%; height: auto; }

/* ---------- Process steps (a real sequence -> numbered) ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--gold);
  width: 56px; height: 56px; border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--slate); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120% 100% at 0 0, var(--navy-700), var(--navy-900));
  color: var(--white); border-radius: var(--radius); padding: 56px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: .3rem; max-width: 20ch; }
.cta-band p { color: #b7c4dc; margin: 0; }
.cta-band .cta-text { position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: radial-gradient(120% 140% at 85% 0, var(--navy-700), var(--navy-900));
  color: var(--white); padding: 92px 0 80px; position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: #bccbe4; }
.crumbs { font-size: .85rem; color: #8ea2c4; margin-bottom: 1.4rem; letter-spacing: .03em; }
.crumbs a:hover { color: var(--gold-soft); }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-strip .num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--navy-900); }
.stat-strip .lab { color: var(--slate); font-size: .95rem; }
.section--navy .stat-strip .num { color: var(--gold-soft); }
.section--navy .stat-strip .lab { color: #9fb0cd; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 0; }
.info-row { display: flex; gap: 1rem; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy-900); display: flex; align-items: center; justify-content: center; }
.info-row .ic svg { width: 20px; height: 20px; stroke: var(--gold-soft); }
.info-row .k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.info-row .v { font-weight: 600; color: var(--navy-900); }
.info-row .v a:hover { color: var(--gold); }

/* form */
.form { display: grid; gap: 1.1rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--navy-900); }
.field label .req { color: var(--gold); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.14); }
.field .err { font-size: .82rem; color: #c0392b; min-height: 0; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--slate); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }
.form-note { font-size: .88rem; color: var(--slate); }
.form-success {
  display: none; align-items: center; gap: .7rem;
  background: rgba(201,162,39,.1); border: 1px solid var(--gold-soft);
  color: var(--navy-900); padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 500;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; stroke: var(--gold); flex: none; }

/* map */
.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.15); }

/* hours */
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours .day { color: var(--navy-900); font-weight: 500; }
.hours .time { color: var(--slate); }
.hours .closed { color: #b04a3a; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.6rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8rem; color: var(--navy-700); }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 2.4rem; }
.toc strong { display: block; margin-bottom: .6rem; color: var(--navy-900); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { color: var(--navy-700); text-decoration: none; }
.toc a:hover { color: var(--gold); }
.legal-meta { font-size: .9rem; color: var(--slate); margin-bottom: 2rem; }

/* impressum block */
.imprint { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; }
.imprint dl { display: grid; grid-template-columns: 200px 1fr; gap: .4rem 1.5rem; margin: 0; }
.imprint dt { font-weight: 600; color: var(--navy-900); }
.imprint dd { margin: 0; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0cd; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { font-size: 1.35rem; }
.footer-brand p { color: #8ea2c4; max-width: 36ch; margin-top: 1rem; font-size: .95rem; }
.footer-col h4 { color: var(--white); font-family: var(--body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .65rem; }
.footer-col a { color: #b3c1da; font-size: .96rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--gold-soft); flex: none; margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 26px; font-size: .88rem; color: #7e90b0; }
.footer-bottom a { color: #7e90b0; }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-bottom .sep { color: #46577a; margin: 0 .5rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .split--reverse .split-media { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .imprint dl { grid-template-columns: 1fr; gap: .1rem 0; }
  .imprint dd { margin-bottom: .7rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--navy-900); padding: 12px 18px 26px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu li { width: 100%; }
  .nav-menu a { padding: .95rem .4rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-menu a::after { display: none; }
  .nav-menu a.is-active { color: var(--gold-soft); }
  .nav-cta { margin: .8rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .section { padding: 68px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 84px 0 76px; }
  .hero-trust { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
