/* Ecom Launchpad — brand colours (#002C51, #0084FB) and the Instrument type family.
   Headlines: Instrument Serif. Text and UI: Instrument Sans. */
:root {
  --paper: #FFFFFF;     /* brand light */
  --paper-2: #F2F2F2;   /* brand key2 */
  --ink: #002C51;
  --ink-2: #003D70;     /* brand dark, one step lighter (hover/gradient end) */
  --ink-deep: #002C51;
  --blue: #0084FB;
  --sky: #B4CCE4;       /* secondary text on brand dark, 8:1 */
  --haze: #E3E6EA;      /* rules, neutral like #F2F2F2 */
  --slate: #4A5E72;     /* secondary text on white, 6.6:1 */
  --max: 1240px;
  --gutter: 40px;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, blockquote { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .9375rem; }
.skip:focus { top: 12px; }
em { font-style: italic; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.label { font-size: 0.9375rem; color: var(--slate); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0072DA; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper-2); }
.btn-line { border: 1px solid var(--haze); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn .arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.14); }
.btn-white .arrow { background: var(--paper-2); }
.btn svg { width: 14px; height: 14px; }

/* Header with floating pill navigation */
header { position: sticky; top: 0; z-index: 20; padding: 14px 0; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--haze); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav .logo { justify-self: start; }
.nav-right { display: contents; }
.nav-right > .btn { justify-self: end; }
.nav .logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 2px; padding: 5px; background: #fff; border: 1px solid var(--haze); border-radius: 999px; box-shadow: 0 6px 24px -12px rgba(0,44,81,.25); font-size: 0.875rem; }
.nav-links a { padding: 7px 14px; border-radius: 999px; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.is-active { background: var(--blue); color: #fff; }
.nav-right .btn { min-height: 42px; border-radius: 999px; padding: 0 18px; }

/* Mobile menu */
.menu-btn { display: none; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--haze); background: #fff; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: -1; height: 100vh; height: 100dvh; padding-top: 76px; background: var(--paper); overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity .22s ease, transform .3s var(--ease); }
html.menu-open { overflow: hidden; }
html.menu-open header { background: var(--paper); }
.mobile-menu.open { opacity: 1; transform: none; }
.mobile-menu .wrap { display: flex; flex-direction: column; min-height: 100%; padding-top: 16px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.mobile-menu .menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.mobile-menu .menu-foot .btn { width: 100%; min-height: 52px; font-family: var(--sans); font-size: 1rem; border-bottom: 0; padding: 0 20px; }
.mobile-menu .menu-foot .mail { font-family: var(--sans); font-size: .9375rem; color: var(--slate); text-align: center; border: 0; padding: 4px 0; }
.mobile-menu .links a { display: block; font-family: var(--serif); font-size: 2.25rem; line-height: 1.15; padding: 14px 0; border-bottom: 1px solid var(--haze); }
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* Hero */
.hero { padding: 96px 0 0; }
.hero-copy { text-align: center; max-width: 920px; margin: 0 auto; }
.pill-kicker { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--haze); font-size: 0.8125rem; color: var(--slate); }
.hero h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.02; margin: 28px auto 0; max-width: 13em; }
.hero h1 em { color: var(--blue); }
.hero-lede { margin: 28px auto 0; max-width: 38em; font-size: 1.125rem; color: var(--slate); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Key figures */
.figures { margin-top: 88px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 20px; overflow: hidden; color: #fff; background: radial-gradient(120% 160% at 100% 0%, rgba(0,132,251,.38) 0%, rgba(0,132,251,0) 55%), var(--ink); box-shadow: 0 30px 60px -34px rgba(0,44,81,.7); }
.fig { padding: 40px 40px 44px; display: flex; flex-direction: column; gap: 14px; }
.fig + .fig { border-left: 1px solid rgba(255,255,255,.14); }
.fig strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -0.015em; }
.fig span { font-size: 0.9375rem; line-height: 1.45; color: var(--sky); max-width: 22em; }

/* Globe section */
.globe { margin-top: 120px; color: #fff; background: radial-gradient(90% 70% at 50% 0%, rgba(0,132,251,.42) 0%, rgba(0,132,251,0) 60%), var(--ink); padding: 112px 0 96px; overflow: hidden; }
.globe .kicker { color: var(--sky); text-align: center; }
.globe h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); text-align: center; max-width: 15em; margin: 18px auto 0; }
.globe h2 .soft { color: #4AA6FF; }
.globe-stage { position: relative; width: min(560px, 86vw); margin: 56px auto 0; aspect-ratio: 1; }
.globe-stage img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,20,40,.5)); }
.globe-stage .globe-canvas { position: absolute; inset: 0; z-index: 2; filter: drop-shadow(0 40px 60px rgba(0,10,25,.5)); }
.globe-stage .orbit { position: absolute; inset: -9%; border-radius: 50%; border: 1px solid rgba(0,132,251,.28); }
.globe-stage .orbit.o2 { inset: -20%; border-color: rgba(0,132,251,.14); }
.globe-caption { margin-top: 40px; text-align: center; font-size: 0.9375rem; letter-spacing: 0.04em; color: var(--sky); }

/* Section heads */
.sec-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; max-width: 14em; }
.sec-head p { color: var(--slate); max-width: 28em; justify-self: end; }

/* Areas — three cards */
.areas { padding: 128px 0 56px; background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--haze); border-radius: 18px; padding: 32px 30px 34px; display: flex; flex-direction: column; min-height: 280px; }
.card .stage { font-size: 0.8125rem; color: var(--slate); padding-bottom: 18px; border-bottom: 1px solid var(--haze); }
.card h3 { font-size: 2.5rem; margin: auto 0 12px; padding-top: 48px; }
.card p:last-child { color: var(--slate); font-size: 0.9375rem; }
.card.dark { background: radial-gradient(120% 120% at 100% 0%, rgba(0,132,251,.4) 0%, rgba(0,132,251,0) 60%), var(--ink); border-color: transparent; color: #fff; }
.card.dark .stage { color: var(--sky); border-color: rgba(255,255,255,.16); }
.card.dark p:last-child { color: var(--sky); }

/* Expertise — one row */
.expertise { padding: 56px 0 128px; background: var(--paper-2); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.skills li { padding: 24px 24px 0 0; }
.skills li + li { padding-left: 24px; border-left: 1px solid var(--haze); }
.skills h3 { font-size: 1.625rem; margin-bottom: 8px; }
.skills p { color: var(--slate); font-size: 0.9375rem; }

/* Lists with arrows (FAQ) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.split h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; }
.list details { border-bottom: 1px solid var(--haze); }
.list > :first-child { border-top: 1px solid var(--haze); }
.list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 20px 0; min-height: 44px; }
.list summary::-webkit-details-marker { display: none; }
.list .name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.list .chev { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--haze); transition: transform .2s ease, background-color .2s ease; }
.list .chev svg { width: 14px; height: 14px; }
.list details[open] .chev { transform: rotate(180deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.list .body { padding: 0 64px 24px 0; color: var(--slate); max-width: 40em; }
.list .body a { color: var(--blue); }

/* Principles */
.principles { background: #fff; padding: 112px 0; }
.principles blockquote { font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; max-width: 17em; }
.principles blockquote em { color: var(--blue); }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 72px; }
.p-grid h3 { font-size: 1.625rem; margin-bottom: 10px; }
.p-grid p { color: var(--slate); font-size: 0.9375rem; }

/* Access card */
.access { padding: 128px 0; }
.access-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 64px; border-radius: 24px; color: #fff; background: radial-gradient(90% 120% at 0% 0%, rgba(0,132,251,.4) 0%, rgba(0,132,251,0) 55%), var(--ink); }
.access-card h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; }
.access-card .text p { margin-top: 20px; color: var(--sky); max-width: 28em; }
.member { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 32px; }
.member h3 { font-size: 1.75rem; margin-bottom: 6px; }
.member .sub { color: var(--sky); font-size: 0.9375rem; margin-bottom: 28px; }
.member ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 0.9375rem; }
.member li { display: flex; gap: 10px; align-items: baseline; }
.member li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }
.member .row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.member .row a.mail { font-size: 0.9375rem; color: var(--sky); }
.member .row a.mail:hover { color: #fff; }

/* FAQ */
.faq { padding: 0 0 128px; }

/* Footer */
footer { background: var(--ink-deep); color: rgba(255,255,255,.74); padding: 72px 0 40px; font-size: 0.9375rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot img { height: 24px; width: auto; margin-bottom: 18px; }
.foot .tag { font-family: var(--serif); font-size: 1.625rem; color: #fff; line-height: 1.15; max-width: 14em; }
.foot h4 { margin: 0 0 14px; color: #fff; font-size: 0.9375rem; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-block; padding: 6px 0; }
.foot a:hover { color: #fff; }
.legal { padding-top: 28px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 0.8125rem; color: rgba(255,255,255,.62); }
.legal p { max-width: 46em; }

/* Text pages (Datenschutz, 404) */
.page { padding: 72px 0 128px; }
.page .wrap { max-width: 880px; }
.page h1 { font-size: clamp(3rem, 6.4vw, 5rem); margin: 10px 0 14px; }
.page .stand { color: var(--slate); font-size: 0.9375rem; padding-bottom: 36px; border-bottom: 1px solid var(--haze); }
.prose h2 { font-size: 1.875rem; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--slate); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.notfound { min-height: 62vh; display: flex; align-items: center; }
.notfound p { color: var(--slate); font-size: 1.125rem; margin: 0 0 28px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 1080px) {
  .split, .access-card { grid-template-columns: 1fr; gap: 40px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-head p { justify-self: start; }
  .skills { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .skills li:nth-child(4) { padding-left: 0; border-left: 0; }
  .p-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto auto; gap: 8px; }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .figures { grid-template-columns: 1fr; }
  .fig + .fig { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .fig { padding: 28px 28px 30px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  header { padding: 10px 0; }
  .nav .logo img { height: 22px; }
  .nav-right > .btn { min-height: 44px; padding: 0 14px; font-size: .875rem; }
  .hero { padding-top: 48px; }
  .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-lede { font-size: 1.0625rem; }
  .figures { margin-top: 56px; border-radius: 18px; }
  .fig { padding: 24px 20px 26px; gap: 8px; }
  .globe { margin-top: 88px; padding: 80px 0 72px; }
  .areas { padding: 88px 0 40px; }
  .expertise { padding: 40px 0 88px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { min-height: 0; padding: 26px 22px; }
  .card h3 { padding-top: 28px; font-size: 2.125rem; }
  .skills { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .skills li, .skills li + li, .skills li:nth-child(4) { padding: 20px 12px 20px 0; border-left: 0; border-bottom: 1px solid var(--haze); }
  .skills li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--haze); }
  .list .body { padding-right: 0; }
  .principles { padding: 80px 0; }
  .p-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .access { padding: 88px 0; }
  .access-card { padding: 36px 20px; border-radius: 20px; }
  .member { padding: 24px 20px; }
  .member ul { grid-template-columns: 1fr; }
  .member .row .btn { flex: 1 1 100%; }
  .faq { padding-bottom: 88px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .page { padding: 40px 0 88px; }
}

.globe h2 .soft { white-space: nowrap; }

/* Motion (only when JS runs and the visitor allows motion) */
header { transition: box-shadow .3s ease; }
header.scrolled { box-shadow: 0 10px 30px -22px rgba(0,44,81,.45); }
.card { transition: transform .35s var(--ease), box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(0,44,81,.45); }

.motion .words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.motion .words .wi { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.motion .words.in .wi { transform: none; }

.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .globe-stage.reveal { transform: translateY(40px) scale(.92); transition-duration: 1.2s, 1.4s; }
.motion .globe-stage.reveal.in { transform: none; }
.motion .reveal-card { opacity: 0; transform: translateY(48px) scale(.985); transition: opacity .9s ease, transform 1.1s var(--ease); }
.motion .reveal-card.in { opacity: 1; transform: none; }
html.menu-open .nav-right > .btn { visibility: hidden; }
