/* ==========================================================================
   CORELIANT GmbH – Website Styles
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280 / 1600
   ========================================================================== */

/* Montserrat, self-hosted (no request to Google). Variable font 400–800, licence: assets/fonts/OFL.txt */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --blue: #0066FF;
  --blue-dark: #0052CC;
  --mint: #ADFFAD;
  --mint-soft: #E6FFE6;
  --navy: #1D2D3E;
  --navy-deep: #131F2B;

  /* Neutrals */
  --white: #FFFFFF;
  --bg-soft: #F7F8FA;
  --line: #E4E7EC;
  --gray: #808080;
  --text: #1D2D3E;
  --text-muted: #5A6878;

  /* Type */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.25rem, 6vw + 1rem, 5.5rem);
  --fs-h1: clamp(2.25rem, 4.5vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  --fs-h3: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Layout */
  --container: 1140px;
  --gutter: 16px;
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(29, 45, 62, .06), 0 2px 8px rgba(29, 45, 62, .04);
  --shadow-md: 0 8px 30px rgba(29, 45, 62, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 84px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); }
.section--dark .section-head p { color: rgba(255,255,255,.75); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-small); font-weight: 600; color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: .55rem; height: .55rem;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.section-head .eyebrow, .page-hero .eyebrow { color: var(--blue); font-size: var(--fs-small); margin: 0 0 1rem; }
.section--dark .eyebrow, .hero .eyebrow, .section--dark .section-head .eyebrow { color: var(--mint); }
h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.4rem;
  border-radius: 999px; border: 1.5px solid currentColor;
  font-size: .95rem; font-weight: 600; line-height: 1.2;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn .chev { transition: transform .25s var(--ease); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--outline { color: var(--blue); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.85); }
.btn--mint { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.btn--dark { color: var(--navy); }
.btn--header { color: inherit; padding-inline: 1.1rem; font-weight: 500; }
@media (hover: hover) {
  .btn--header:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
  .btn:hover .chev { transform: translateX(3px); }
  .btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
  .btn--outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
  .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
  .btn--mint:hover { background: var(--white); border-color: var(--white); }
  .btn--dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
}
.chev { width: .8em; height: .8em; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--blue); min-height: 44px;
}
.text-link .chev { transition: transform .25s var(--ease); }
@media (hover: hover) { .text-link:hover .chev { transform: translateX(4px); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 32px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 38px; } }
.brand .logo-dark { display: none; }

/* Transparent header over dark hero; solid when scrolled or on light pages */
.site-header { color: var(--white); }
.site-header.is-solid, .site-header--light {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--navy);
}
.site-header.is-solid .logo-light, .site-header--light .logo-light { display: none; }
.site-header.is-solid .logo-dark, .site-header--light .logo-dark { display: block; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.main-nav a {
  position: relative; font-size: .92rem; font-weight: 500; padding-block: .5rem;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--mint); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-header.is-solid .main-nav a::after, .site-header--light .main-nav a::after { background: var(--blue); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) { .main-nav a:hover::after { transform: scaleX(1); } }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { display: none; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 2px;
  font-size: .78rem; font-weight: 600;
}
.lang-switch button {
  min-width: 40px; min-height: 36px; padding: 0 .6rem; border-radius: 999px;
  opacity: .75; transition: background .2s, color .2s, opacity .2s;
}
.lang-switch button[aria-pressed="true"] { opacity: 1; background: currentColor; }
.lang-switch button[aria-pressed="true"] span { color: var(--navy); }
.site-header.is-solid .lang-switch button[aria-pressed="true"] span,
.site-header--light .lang-switch button[aria-pressed="true"] span { color: var(--white); }

.nav-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .header-actions .btn { display: inline-flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--white);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-open { overflow: hidden; }
.nav-open .site-header { background: transparent; box-shadow: none; color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-open .site-header .logo-light { display: block; }
.nav-open .site-header .logo-dark { display: none; }
.nav-open .site-header .lang-switch button[aria-pressed="true"] span { color: var(--navy); }
.mobile-menu ul { display: grid; gap: .25rem; }
.mobile-menu a.mm-link {
  display: flex; align-items: center; justify-content: space-between;
  font-size: clamp(1.6rem, 6vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em;
  padding-block: .6rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu a.mm-link[aria-current="page"] { color: var(--mint); }
.mobile-menu .chev { width: 1rem; height: 1rem; color: var(--mint); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero (home, full-bleed) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  color: var(--white); text-align: center;
  background: var(--navy-deep);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  /* blurred "photo" substitute: layered gradients */
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(60% 50% at 75% 15%, rgba(173,255,173,.55), transparent 60%),
    radial-gradient(55% 60% at 15% 85%, rgba(0,102,255,.85), transparent 65%),
    radial-gradient(40% 40% at 85% 85%, rgba(0,102,255,.6), transparent 70%),
    linear-gradient(135deg, #131F2B 0%, #1D2D3E 35%, #0B3D91 70%, #0066FF 100%);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__bg::after {
  /* sweeping arc like reference */
  content: ""; position: absolute;
  width: 140vmax; height: 140vmax; left: -55vmax; top: -95vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 78%, rgba(173,255,173,.35) 88%, rgba(0,102,255,.0) 100%);
  transform: rotate(-12deg);
  opacity: .9;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.hero__content { max-width: 1100px; margin-inline: auto; }
.hero h1 { font-size: clamp(2.1rem, 3.8vw + 1rem, 4.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 1.75rem; }
.hero h1 .accent { display: block; color: var(--mint); }
.hero__lead { font-size: var(--fs-lead); max-width: 640px; margin: 0 auto 1rem; color: rgba(255,255,255,.85); }
.hero__lead strong { color: var(--white); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.hero__scroll {
  position: absolute; bottom: calc(1.5rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--mint); border-radius: 2px; animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-height: 860px) { .hero__scroll { display: none; } }

/* Landscape phones: don't force full height */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__scroll { display: none; }
}

/* ---------- Page hero (split, like "Proof of value") ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-soft);
  border-top: 1px solid transparent;
}
.page-hero__inner { display: grid; gap: 1.5rem; align-items: end; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.page-hero h1 .accent { color: var(--blue); }
.page-hero p { color: var(--text-muted); margin: 0; font-size: 1rem; max-width: 520px; }
@media (min-width: 1024px) {
  .page-hero__inner { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  .page-hero p { padding-bottom: .6rem; }
}

/* ---------- Chips (filters) ---------- */
.chips {
  display: flex; gap: .6rem; margin-top: clamp(2rem, 4vw, 3rem);
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 2px 6px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 2px; } }
.chip {
  flex: none; scroll-snap-align: start;
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--navy); background: transparent; color: var(--navy);
  font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { background: var(--mint-soft); } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.section--soft .card { box-shadow: none; }
@media (hover: hover) {
  .card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .card--link:hover .card__media > * { transform: scale(1.04); }
}
.card__media { aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card__media > * { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__cat { font-size: var(--fs-small); font-weight: 500; color: var(--blue); }
.card__body h3 { font-weight: 500; font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); }
.card__body p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.card__meta { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: var(--mint); color: var(--navy);
}
.card__meta strong { display: block; font-size: .85rem; font-weight: 600; line-height: 1.3; }
.card__meta small { display: block; font-size: .78rem; color: var(--text-muted); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }

.card--featured { display: grid; }
@media (min-width: 900px) {
  .card--featured { grid-template-columns: 1.4fr 1fr; }
  .card--featured .card__media { aspect-ratio: auto; min-height: 380px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .card--featured .card__body { padding: 2.5rem; justify-content: center; }
  .card--featured h3 { font-size: clamp(1.4rem, 1vw + 1rem, 2rem); font-weight: 600; }
}

/* Service card (text-first) */
.svc {
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
  container-type: inline-size;
}
@media (hover: hover) { .svc--link:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.svc__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--mint); color: var(--navy);
}
.svc__icon svg { width: 28px; height: 28px; }
/* Words never break mid-syllable: long compounds only at a soft hyphen (&shy;) at the joint,
   e.g. "Unternehmens&shy;strategie"; the size follows the card width so the longest part fits. */
.svc h3 { font-size: clamp(1.05rem, 11.5cqi, 1.5rem); font-weight: 700; hyphens: manual; }
.svc p { color: var(--text-muted); margin: 0; }
.svc .text-link { margin-top: auto; }

.chev-list { display: grid; gap: .55rem; }
.chev-list li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.chev-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .45rem; height: .45rem;
  border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg);
}
.section--dark .chev-list li::before { border-color: var(--mint); }

/* Visual placeholders (abstract, no stock photos) */
.viz { position: relative; background: var(--navy); }
.viz--blue  { background: linear-gradient(135deg, #0066FF, #3D8BFF 55%, #ADFFAD 140%); }
.viz--navy  { background: radial-gradient(80% 80% at 80% 20%, #0066FF 0%, transparent 60%), #1D2D3E; }
.viz--mint  { background: radial-gradient(70% 70% at 30% 30%, #ffffff 0%, transparent 60%), linear-gradient(160deg, #ADFFAD, #7FE6C9); }
.viz--soft  { background: linear-gradient(160deg, #E8F0FF, #F7F8FA); }
.viz--grid  {
  background:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, #1D2D3E, #0066FF);
}
.viz svg.viz__mark { position: absolute; inset: 0; margin: auto; width: 38%; height: auto; opacity: .95; }

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.step {
  counter-increment: step; position: relative;
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.section:not(.section--dark) .step { background: var(--white); border-color: var(--line); }
.step::before {
  content: "0" counter(step);
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--mint); color: var(--navy); font-weight: 700; margin-bottom: 1.25rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { margin: 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.section:not(.section--dark) .step p { color: var(--text-muted); }

/* ---------- Split block ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.split__media > * { width: 100%; height: 100%; }
/* Image uploaded in the admin area (Seitentexte) replaces the default graphic; cropped centrally to 4:3 */
.split__media > img { display: block; object-fit: cover; }

/* ---------- Values / stat-like tiles (no numbers invented) ---------- */
.value { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.value h3 { margin: 1rem 0 .5rem; }
.value p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.value__k {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); color: var(--mint);
}
.value__k svg { width: 24px; height: 24px; }

/* ---------- Team ---------- */
.person { text-align: left; }
.person__img { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem; display: grid; place-items: center; }
.person__img span { font-size: 2rem; font-weight: 700; color: var(--navy); opacity: .6; }
.person h3 { font-size: 1.05rem; font-weight: 600; }
.person p { margin: .2rem 0 0; color: var(--text-muted); font-size: .9rem; }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
/* Team keeps its card size even with only a few people */
[data-content="team"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.person__link { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 600; color: var(--blue); }

/* ---------- Offerings (Core Insights products) ---------- */
.offer {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
}
.offer::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(173,255,173,.35), transparent 70%);
}
.offer__tag {
  align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--mint); color: var(--navy);
}
.offer h3 { font-size: clamp(1.25rem, .8vw + 1rem, 1.6rem); }
.offer p { margin: 0; color: rgba(255,255,255,.78); }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Jobs ---------- */
.jobs { display: grid; gap: .75rem; }
.job {
  display: grid; gap: .5rem 1.5rem; align-items: center;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
  position: relative;
}
@media (min-width: 768px) { .job { grid-template-columns: 1fr auto auto; } }
@media (hover: hover) { .job:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); } }
.job h3 { font-size: 1.1rem; font-weight: 600; }
.job__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .78rem; font-weight: 500; padding: .25rem .65rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--line);
}
.job .text-link::after { content: ""; position: absolute; inset: 0; }
.job__links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.job__pdf { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 600; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Placeholder marker ---------- */
.ph {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .03em;
  padding: .1rem .45rem; border-radius: 6px; vertical-align: middle;
  background: #FFF4CC; color: #6B5300; border: 1px dashed #D4B000;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .85rem; font-weight: 500;
}
.pagination ol { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.pagination ol a, .pagination > a {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 999px; padding: 0 .5rem;
}
.pagination > a { display: inline-flex; gap: .4rem; }
.pagination ol a[aria-current="page"] { background: var(--navy); color: var(--white); }
@media (max-width: 479px) { .pagination ol li:nth-child(n+3):not(:last-child) { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 1024px) { .cta-band__inner { grid-template-columns: 1.5fr auto; gap: 3rem; } }
.cta-band h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); margin: 0; }
.cta-band h2 span { display: block; font-weight: 500; }
.cta-band p { margin: .6rem 0 0; color: var(--text-muted); font-size: .92rem; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 479px) { .cta-band__actions .btn { flex: 1 1 100%; } }

/* Dark CTA (contact) */
.contact-cta {
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(173,255,173,.35), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(0,102,255,.7), transparent 60%),
    var(--navy);
  color: var(--white); display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 1024px) { .contact-cta { grid-template-columns: 1.5fr auto; } }
.contact-cta h2 { margin: 0 0 .5rem; }
.contact-cta p { margin: 0; color: rgba(255,255,255,.8); max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); max-width: 280px; }
.site-footer h4 { font-size: .8rem; font-weight: 600; color: var(--blue); margin-bottom: 1rem; letter-spacing: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer li a { display: inline-block; padding-block: .2rem; }
.site-footer address { font-style: normal; color: var(--text); }
.site-footer .u { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .site-footer li a:hover { color: var(--blue); } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: .8rem;
}
.social { display: flex; gap: .5rem; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s;
}
.social svg { width: 18px; height: 18px; }
@media (hover: hover) { .social a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); } }

/* ---------- Lead dialog (gated downloads) ---------- */
html:has(dialog[open]) { overflow: hidden; }
.lead-dialog {
  width: min(600px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text);
  box-shadow: 0 30px 80px rgba(19, 31, 43, .35);
  overflow: auto; overscroll-behavior: contain;
}
.lead-dialog::backdrop { background: rgba(19, 31, 43, .65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lead-form { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); }
.lead-form h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin-bottom: .5rem; padding-right: 2.5rem; }
.lead-doc { font-weight: 600; color: var(--blue); margin-bottom: .75rem; }
.lead-intro { color: var(--text-muted); font-size: .95rem; }
.lead-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy); transition: background .2s;
}
.lead-close svg { width: 18px; height: 18px; }
@media (hover: hover) { .lead-close:hover { background: var(--bg-soft); } }

.field-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 560px) { .field-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input {
  width: 100%; min-height: 48px; padding: .7rem .95rem;
  font: inherit; font-size: 1rem; /* ≥16px avoids iOS zoom */
  color: var(--text); background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field input[aria-invalid="true"] { border-color: #C62828; background: #FFF6F6; }

.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; margin-bottom: 1rem; font-size: .88rem; color: var(--text-muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.check a { color: var(--blue); text-decoration: underline; }
/* Links inside editable texts (admin area: Seitentexte) */
p[data-i18n] a, li[data-i18n] a { text-decoration: underline; text-underline-offset: 3px; }
.check input[aria-invalid="true"] { outline: 2px solid #C62828; outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 12px; background: #FFF6F6; color: #A31515; font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { margin: 0; font-size: .8rem; color: var(--text-muted); }
@media (max-width: 479px) { .form-actions .btn { width: 100%; } }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::after {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lead-done { text-align: center; padding-block: 1rem; }
.lead-done__icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--navy);
}
.lead-done__icon svg { width: 34px; height: 34px; }
.lead-done h2 { padding-right: 0; }
.lead-done p { color: var(--text-muted); }
.lead-done .form-actions { justify-content: center; margin-top: 1.5rem; }

.card__media img { object-fit: cover; }
.ins-featured { margin-bottom: clamp(1rem, 2.5vw, 2rem); }
.ins-more { text-align: center; margin: 2.5rem 0 0; }
.ins-empty { text-align: center; color: var(--text-muted); padding: 3rem 1rem; margin: 0; }

.card__dl { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--navy); }
.card__dl svg { width: 14px; height: 14px; color: var(--blue); }

/* ---------- Legal pages ---------- */
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { list-style: disc; padding-left: 1.25rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---------- Large screens ---------- */
@media (min-width: 1600px) {
  :root { --container: 1280px; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .mobile-menu, .hero__bg, .hero__grid, .hero__scroll, .cta-band, .chips, .pagination { display: none !important; }
  .hero, .page-hero { min-height: auto; padding: 1rem 0; background: none; color: #000; }
  .section--dark, .offer, .contact-cta { background: none; color: #000; }
  body { font-size: 11pt; }
}
