/* ============================================================
   JPAC GmbH — Design System
   Restrained asset-management / banking aesthetic.
   Light, navy ink, one disciplined indigo accent.
   Type: Source Serif 4 (display) · Manrope (body)
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #f4f5f8;   /* soft cool off-white */
  --bg-2:        #eceef3;   /* slightly deeper tint for alt sections */
  --surface:     #ffffff;
  --surface-2:   #f8f9fb;
  --border:      #e2e5ec;
  --border-2:    #d4d8e2;

  /* Ink */
  --navy:        #15233b;   /* primary structural */
  --navy-deep:   #0f1a2d;
  --text:        #1b2740;
  --text-muted:  #5a6478;
  --text-dim:    #8a93a6;

  /* Accent (a single, muted indigo-blue drawn from the logo) */
  --accent:      #2f4d9b;
  --accent-soft: #4a66b5;
  --accent-tint: #eef1fa;
  --gold:        #a8842f;   /* rare warm detail */

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 12px;
  --radius-lg: 18px;

  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: Georgia, "Times New Roman", "Source Serif 4", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(21,35,59,.04), 0 2px 8px rgba(21,35,59,.04);
  --shadow-md: 0 4px 14px rgba(21,35,59,.06), 0 12px 32px rgba(21,35,59,.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background — quiet, no neon */
.bg-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%);
}
.bg-grid { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--gold);
}

/* Emphasis word in headings — accent, not neon gradient */
.grad-text { color: var(--accent); -webkit-text-fill-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff; background: var(--navy); box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  color: var(--navy); background: #fff; border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; color: var(--navy); white-space: nowrap; }
.brand .gmbh { font-weight: 400; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  transition: color .2s; position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }

/* Language toggle */
.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--border-2);
  border-radius: 8px; overflow: hidden; font-size: 12.5px; font-weight: 600; background: #fff;
}
.lang button {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  padding: 7px 12px; font-family: inherit; font-size: inherit; letter-spacing: .04em;
  transition: color .2s, background .2s;
}
.lang button.active { color: #fff; background: var(--navy); }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 168px; padding-bottom: 100px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin: 24px 0 24px; font-weight: 600; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-muted); max-width: 34em; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .glow {
  position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,77,155,.07), transparent 70%);
}
.hero-visual img { position: relative; width: 100%; max-width: 420px; }

/* tag chips under hero */
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.chip {
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--text-muted); padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 100px; background: #fff;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 44px); margin: 18px 0 18px; }
.section-head p { color: var(--text-muted); font-size: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Positioning / about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--text-muted); font-size: 17px; margin-bottom: 18px; }
.about-copy p strong { color: var(--navy); font-weight: 600; }

.feature-rail { display: grid; gap: 14px; }
.feature {
  display: flex; gap: 18px; padding: 22px 24px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s, box-shadow .25s;
}
.feature:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.feature .ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-tint); border: 1px solid #e0e5f4;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.feature p { font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Leistungen (services) ---------- */
.services { display: grid; gap: 20px; }
.service {
  display: grid; grid-template-columns: 64px 1fr; gap: 30px;
  padding: clamp(28px, 4vw, 44px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
  position: relative; transition: box-shadow .25s, border-color .25s;
}
.service:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }
.service .num {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--border-2); border-radius: 10px; width: 56px; height: 56px;
  display: grid; place-items: center; background: var(--surface-2);
}
.service h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
.service .sub { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.service .desc { color: var(--text-muted); font-size: 16px; max-width: 64ch; margin-bottom: 22px; }
.service ul { list-style: none; display: grid; gap: 11px; }
.service li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--text); }
.service li::before {
  content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%;
  background: var(--gold);
}

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1.1fr .9fr;
}
.contact-info { padding: clamp(32px, 5vw, 56px); }
.contact-info h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 16px 0 14px; }
.contact-info > p { color: var(--text-muted); font-size: 17px; margin-bottom: 36px; max-width: 38ch; }
.contact-list { display: grid; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-tint); border: 1px solid #e0e5f4;
}
.contact-row .ico svg { width: 20px; height: 20px; }
.contact-row .label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.contact-row .val { font-size: 16.5px; color: var(--navy); font-weight: 500; line-height: 1.5; }
.contact-row a.val:hover { color: var(--accent); }
.contact-aside {
  position: relative; background: var(--accent-tint);
  border-left: 1px solid var(--border);
  display: grid; place-items: center; padding: 48px; min-height: 300px;
}
.contact-aside img { width: 70%; max-width: 240px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  background: var(--navy);
}
.cta-strip h2 { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 16px; color: #fff; }
.cta-strip p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 42ch; margin: 0 auto 32px; }
.cta-strip .btn-primary { background: #fff; color: var(--navy); }
.cta-strip .btn-primary:hover { background: #eef1fa; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 40px; margin-top: 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h5 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 150px; padding-bottom: 80px; max-width: 820px; }
.legal h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 10px; }
.legal .updated { font-size: 14px; color: var(--text-dim); margin-bottom: 40px; }
.legal h2 { font-size: 23px; margin: 44px 0 14px; color: var(--navy); }
.legal h3 { font-size: 17px; margin: 26px 0 10px; color: var(--navy); font-family: var(--font-body); font-weight: 700; }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; margin-bottom: 14px; }
.legal p strong { color: var(--navy); }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 9px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .note {
  border: 1px solid var(--border-2); border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 16px 18px; margin: 14px 0 24px; background: #fbf8f1; font-size: 14px; color: #7a6320;
  line-height: 1.6;
}
.legal address { font-style: normal; color: var(--text); line-height: 1.9; }
.legal address a { color: var(--accent); }

/* ---------- Scroll reveal (gentle) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-aside { min-height: 220px; order: -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; padding: 24px var(--gutter); gap: 22px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service .num { width: 50px; height: 50px; }
  .footer-top { flex-direction: column; }
}

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