/* ============================================================
   INFAS — Integrated Facility Solutions
   Design system: monochrome (black / white / warm grey)
   Type: Archivo (display+body) · JetBrains Mono (labels)
   ============================================================ */

:root {
  /* warm neutral monochrome scale */
  --ink:        oklch(0.16 0.004 60);   /* near-black */
  --ink-soft:   oklch(0.26 0.004 60);
  --grey-900:   oklch(0.30 0.004 60);
  --grey-700:   oklch(0.46 0.004 60);
  --grey-600:   oklch(0.54 0.004 60);
  --grey-500:   oklch(0.62 0.004 60);
  --grey-400:   oklch(0.74 0.004 60);
  --grey-300:   oklch(0.85 0.004 60);
  --grey-200:   oklch(0.91 0.004 60);
  --grey-100:   oklch(0.955 0.004 60);
  --grey-800:   oklch(0.36 0.004 60);
  --paper:      oklch(0.985 0.003 80);  /* off-white */
  --white:      #ffffff;

  --line:       oklch(0.85 0.004 60);
  --line-soft:  oklch(0.91 0.004 60);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; height: 100vh; }

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

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }

.display {
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.h-xl { font-size: clamp(2.4rem, 5.5vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; }
.h-md { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--grey-700);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--grey-500);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.mono { font-family: var(--font-mono); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 168px); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }

.dark { background: var(--ink); color: var(--paper); }
.dark .lead { color: var(--grey-300); }
.dark .eyebrow { color: var(--grey-400); }
.dark .eyebrow::before { background: var(--grey-500); }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  padding: 1.05em 1.8em;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
  border-radius: 0;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover .arr { transform: translateX(4px); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: transparent; color: var(--paper); }
.dark .btn-outline { background: transparent; color: var(--paper); border-color: var(--grey-700); }
.dark .btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link-arrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6em;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: gap .35s var(--ease), opacity .35s var(--ease);
}
.link-arrow:hover { gap: 1em; }

/* ---------- image slots / placeholders ---------- */
image-slot {
  --is-bg: var(--grey-200);
  background: var(--grey-200);
  display: block;
}
.imgwrap { position: relative; overflow: hidden; background: var(--grey-200); }
.imgwrap image-slot { width: 100%; height: 100%; }

/* monospace caption overlay for empty placeholder context (decorative) */
.figtag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey-700);
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  padding: 4px 9px; pointer-events: none;
  backdrop-filter: blur(2px);
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header.solid {
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header.on-dark { color: var(--paper); }

.brand { display: flex; align-items: baseline; gap: 0.6em; font-weight: 800; letter-spacing: -0.04em; font-size: 1.45rem; }
.brand .sub { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; opacity: 0.55; }

/* persistent INFAS home button + current-section context (subpages) */
.brand-group { display: inline-flex; align-items: center; gap: 13px; }
.brand-context {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; opacity: 0.65; position: relative; padding-left: 14px; transition: opacity .3s;
}
.brand-context::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 13px; background: currentColor; opacity: 0.4; }
.brand-context:hover { opacity: 1; }
@media (max-width: 520px) { .menu-btn .mb-label { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 500; position: relative; padding: 6px 0; color: inherit; opacity: 0.78;
  transition: opacity .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: currentColor;
  transition: width .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.nav .nav-cta {
  border: 1px solid currentColor; padding: 0.7em 1.1em; opacity: 1;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: currentColor; }
.nav .nav-cta:hover span { color: var(--paper); }
.site-header.on-dark .nav .nav-cta:hover span { color: var(--ink); }

/* ---------- burger button (all breakpoints) ---------- */
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer; color: inherit;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 0; position: relative; z-index: 210;
}
.menu-btn .mb-icon { position: relative; width: 26px; height: 11px; flex: none; }
.menu-btn .mb-icon i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease), width .45s var(--ease);
}
.menu-btn .mb-icon i:nth-child(1) { top: 0; }
.menu-btn .mb-icon i:nth-child(2) { top: 10px; }
.menu-btn:hover .mb-icon i:nth-child(2) { width: 64%; }
.menu-btn.active .mb-icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn.active .mb-icon i:nth-child(2) { top: 5px; width: 100%; transform: rotate(-45deg); }

/* ---------- full-screen menu overlay ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  display: flex; align-items: center;
  transform: translateY(-100%); transition: transform .65s var(--ease);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav .mn-inner { width: 100%; padding-block: calc(var(--header-h) + 36px) 44px; }
.mobile-nav .mn-links { display: flex; flex-direction: column; border-top: 1px solid var(--grey-900); }
.mobile-nav .mn-links a {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 28px);
  padding: clamp(10px, 1.5vw, 16px) 0; border-bottom: 1px solid var(--grey-900);
  font-size: clamp(1.9rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  color: var(--paper); transition: padding-left .45s var(--ease), color .35s var(--ease);
}
.mobile-nav .mn-links a:hover { padding-left: 16px; color: var(--grey-400); }
.mobile-nav .mn-links .mn-idx { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; color: var(--grey-600); flex: none; }
.mobile-nav .mn-foot { margin-top: clamp(26px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.mobile-nav .mn-cross { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: opacity .3s; }
.mobile-nav .mn-cross:hover { opacity: 0.6; }
.mobile-nav .mn-meta { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--grey-500); }

/* staggered reveal of menu items */
.mobile-nav .mn-links a, .mobile-nav .mn-foot { opacity: 0; transform: translateY(22px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.mobile-nav.open .mn-links a, .mobile-nav.open .mn-foot { opacity: 1; transform: none; }
.mobile-nav.open .mn-links a:nth-child(1) { transition-delay: .12s; }
.mobile-nav.open .mn-links a:nth-child(2) { transition-delay: .17s; }
.mobile-nav.open .mn-links a:nth-child(3) { transition-delay: .22s; }
.mobile-nav.open .mn-links a:nth-child(4) { transition-delay: .27s; }
.mobile-nav.open .mn-links a:nth-child(5) { transition-delay: .32s; }
.mobile-nav.open .mn-links a:nth-child(6) { transition-delay: .37s; }
.mobile-nav.open .mn-foot { transition-delay: .42s; }

/* keep header light & transparent while the menu is open; hide floating extras */
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; color: var(--paper); }
body.menu-open .float-cta { opacity: 0 !important; pointer-events: none !important; }
body.menu-open .scroll-progress { opacity: 0; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader .mark {
  font-weight: 800; font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: 0.04em;
  display: flex; overflow: hidden;
}
.loader .mark span {
  display: inline-block; transform: translateY(110%); animation: loadIn .7s var(--ease-out) forwards;
}
.loader .mark span:nth-child(1) { animation-delay: .05s; }
.loader .mark span:nth-child(2) { animation-delay: .12s; }
.loader .mark span:nth-child(3) { animation-delay: .19s; }
.loader .mark span:nth-child(4) { animation-delay: .26s; }
.loader .mark span:nth-child(5) { animation-delay: .33s; }
@keyframes loadIn { to { transform: translateY(0); } }
.loader .tagline {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--grey-500); opacity: 0; animation: fadeIn .6s ease .5s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.loader .bar { width: min(280px, 60vw); height: 1px; background: var(--grey-900); position: relative; overflow: hidden; }
.loader .bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); animation: barFill 1.5s var(--ease) .35s forwards; }
@keyframes barFill { to { transform: scaleX(1); } }
.loader .pct { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--grey-500); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--paper); }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero-media image-slot, .hero-media .kenburns { width: 100%; height: 100%; }
.hero-media image-slot { background: var(--ink); color: var(--grey-500); }
.kenburns {
  background-size: cover; background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.16) translate(-2%, -1.5%); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.15) 35%, rgba(10,10,10,.35) 70%, rgba(10,10,10,.9) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 110px); padding-top: calc(var(--header-h) + 40px); }
.hero h1 { margin-block: 0.2em 0.35em; }
.hero .lead { color: var(--grey-200); }
.hero-meta { position: absolute; top: calc(var(--header-h) + 30px); right: var(--gutter); z-index: 2; text-align: right; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; align-items: center; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey-300); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .ln { width: 1px; height: 40px; background: linear-gradient(var(--grey-300), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.4; transform-origin: top; } 50% { transform: scaleY(1); opacity:1; transform-origin: top; } }

/* ============================================================
   reusable blocks
   ============================================================ */
.section-head { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 70ch; }
.section-head.split { max-width: none; grid-template-columns: 1fr; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 32px clamp(20px,2.5vw,38px); text-align: center; }
.dark .stat-row { background: var(--grey-900); border-color: var(--grey-900); }
.dark .stat { background: var(--ink); }
.stat .num { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-700); margin-top: 12px; }
.dark .stat .lbl { color: var(--grey-400); }

/* feature list */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.feature { background: var(--paper); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; min-height: 260px; transition: background .4s var(--ease); }
.feature:hover { background: var(--grey-100); }
.feature .idx { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--grey-500); }
.feature h3 { font-size: 1.4rem; }
.feature p { color: var(--grey-700); font-size: 0.98rem; line-height: 1.5; }
.dark .feature-grid { background: var(--grey-900); border-color: var(--grey-900); }
.dark .feature { background: var(--ink); }
.dark .feature:hover { background: var(--ink-soft); }
.dark .feature p { color: var(--grey-400); }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

.line-mask { overflow: hidden; }
.line-mask > * { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.line-mask.in > * { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .line-mask > * { opacity: 1 !important; transform: none !important; }
  .kenburns { animation: none; }
}

/* ============================================================
   footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 9vw, 120px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 18px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: var(--grey-300); font-size: 0.95rem; padding: 4px 0; transition: color .3s; }
.footer-col a:hover { color: var(--paper); }
.footer-brand .display { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 28px 0; border-top: 1px solid var(--grey-900); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--grey-500); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-meta { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
  .mobile-nav .mn-links a, .mobile-nav .mn-foot { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   INFAS logo mark  +  typography corrections
   ============================================================ */
.brand { align-items: center; gap: 0.6em; }
.brand-logo { height: 42px; width: auto; display: block; flex: none; transition: filter .4s var(--ease); }
.brand-name { display: inline-flex; align-items: baseline; gap: 0.5em; }
/* logo is black; flip to white when the header sits on dark (hero / open menu) */
.site-header.on-dark .brand-logo,
body.menu-open .brand-logo { filter: invert(1); }

.loader-logo { width: clamp(96px, 18vw, 150px); height: auto; display: block; opacity: 0; animation: fadeIn .7s ease .15s forwards; }

.footer-logo { width: 54px; height: auto; display: block; margin-bottom: 22px; }

/* Overall type a touch smaller, body copy a shade lighter (client feedback) */
body { font-size: 16px; }
.lead { color: var(--grey-700); }

/* Menu: smaller and lighter — less heavy, more übersichtlich */
.mobile-nav .mn-links a { font-size: clamp(1.45rem, 4vw, 2.4rem); font-weight: 600; }

@media (max-width: 520px) { .brand-logo { height: 34px; } }
/* The full "Integrated Facility Solutions" tagline would crowd the burger on phones */
@media (max-width: 600px) { .brand .sub { display: none; } }

/* Hero-meta box: brand font instead of monospace (client: passt nicht zum Rest) */
.hero-meta, .hero-meta.mono { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.06em; font-size: 0.82rem; text-transform: uppercase; }

/* Lighter, more legible labels over the dark hero (client: "Schrift heller") */
.hero .eyebrow { color: var(--grey-200); }
.hero .eyebrow::before { background: var(--grey-300); }
.brand .sub { opacity: 0.7; }
.site-header.on-dark .brand .sub { opacity: 0.92; }

/* Word-based stats (Vermittlung, 1 Partner) must not overflow the narrow tiles */
/* Uniform stat number size across all tiles (client: Schriftgrößen angleichen) */
.stat .num, .stat .num.num-word { font-size: clamp(1.7rem, 2.5vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* Mobile polish: the decorative scroll cue overlaps hero CTAs on short screens */
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* Stats: clean 2×2 on tablet / mid widths, single column on small phones */
@media (max-width: 1150px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stat-row { grid-template-columns: 1fr; } }

/* Hero headline a step smaller (client), bigger logo balances it */
.hero h1.display { font-size: clamp(2.5rem, 6.8vw, 5.8rem); }
/* Folientechnik hero heading is longer — a touch smaller again (only that page) */
.hero[data-screen-label="FT Hero"] h1.display { font-size: clamp(2.1rem, 5.5vw, 4.8rem); }

/* ============================================================
   Anchor offset so the fixed header never covers the target heading
   ============================================================ */
html { scroll-padding-top: 96px; }
@media (max-width: 600px) { html { scroll-padding-top: 76px; } }

/* ============================================================
   Referenzen — auto-scrolling client logo strip
   ============================================================ */
.logo-marquee {
  display: flex; overflow: hidden; margin-top: clamp(20px, 3vw, 40px); padding-block: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-group {
  flex: none; width: max-content; min-width: 100%;
  display: flex; align-items: center; justify-content: space-around;
  gap: clamp(28px, 4vw, 68px); padding-right: clamp(28px, 4vw, 68px);
  animation: logoMarq 40s linear infinite;
}
.logo-marquee:hover .logo-group { animation-play-state: paused; }
.logo-item {
  flex: none; width: clamp(156px, 16vw, 200px); height: 96px; padding: 18px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.logo-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10, 10, 10, 0.10); border-color: var(--grey-300); }
.logo-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
@keyframes logoMarq { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-group { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 28px; padding-right: 0; }
  .logo-group[aria-hidden="true"] { display: none; }
}

/* ============================================================
   Footer legal links (Impressum · Datenschutz · AGB)
   ============================================================ */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.footer-legal a {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-500); transition: color .3s;
}
.footer-legal a:hover { color: var(--paper); }
.footer-legal a + a { position: relative; padding-left: 18px; }
.footer-legal a + a::before { content: "·"; position: absolute; left: 4px; color: var(--grey-700); }

/* ============================================================
   Legal pages (Impressum · Datenschutz · AGB)
   ============================================================ */
.legal-header .link-arrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.legal { padding-top: clamp(118px, 16vh, 160px); padding-bottom: clamp(60px, 10vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 14px 0 30px; }
.legal-body h2 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal-body p { color: var(--grey-700); font-size: 0.98rem; line-height: 1.62; margin-bottom: 12px; }
.legal-body ul { margin: 10px 0 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-body li { color: var(--grey-700); font-size: 0.98rem; line-height: 1.5; }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.legal-body a:hover { border-color: var(--ink); }
.legal-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--grey-500); }

/* Team cards: keep the phone numbers on the same baseline across all three cards */
.team-grid .member { display: flex; flex-direction: column; }
.team-grid .member .m-tel { margin-top: auto; padding-top: 14px; }
