/* ============================================================
   SPENDEX — Procurement Executives & Experts
   Design System & Global Styles
   ============================================================ */

:root {
  /* Brand */
  --navy-950: #05192a;
  --navy-900: #08243c;
  --navy-800: #0b3253;
  --navy-700: #10456f;
  --ink: #0c2038;
  --ink-soft: #3d5068;
  --muted: #64748b;

  --accent: #58ade0;
  --accent-strong: #0d6eae;
  --accent-deep: #00558c;

  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Aileron", "Sora", system-ui, sans-serif;
  --font-body: "Aileron", "Inter", system-ui, -apple-system, sans-serif;

  /* Fluid type */
  --fs-hero: clamp(2.4rem, 5.6vw + 0.5rem, 4.6rem);
  --fs-h2: clamp(1.8rem, 3vw + 0.4rem, 2.9rem);
  --fs-h3: clamp(1.25rem, 1.4vw + 0.6rem, 1.65rem);
  --fs-body: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(5, 25, 42, 0.06), 0 4px 12px rgba(5, 25, 42, 0.06);
  --shadow-md: 0 4px 10px rgba(5, 25, 42, 0.07), 0 18px 40px rgba(5, 25, 42, 0.12);
  --shadow-accent: 0 10px 30px rgba(0, 85, 140, 0.35);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--navy-950); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Nur fuer Screenreader: haelt die Ueberschriften-Hierarchie geschlossen,
   ohne das Layout zu veraendern. */
.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--navy-950);
  padding: 10px 18px; z-index: 2000; font-weight: 600; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(1200px, 100% - clamp(2.5rem, 6vw, 5rem));
  margin-inline: auto;
}
.container-wide { width: min(1360px, 100% - clamp(2rem, 5vw, 4rem)); margin-inline: auto; }

/* ============================================================
   Reveal-on-scroll animation system (GPU-friendly, JS adds .in)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"]  { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }
/* Auf schmalen Geraeten nur vertikal einblenden: die seitliche Verschiebung
   von 44px ragt sonst ueber den Bildschirmrand und macht die Seite
   horizontal schiebbar, solange der Abschnitt noch nicht sichtbar war. */
@media (max-width: 920px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(30px); }
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Staggered children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1)  { transition-delay: 0.05s; }
[data-stagger].in > *:nth-child(2)  { transition-delay: 0.13s; }
[data-stagger].in > *:nth-child(3)  { transition-delay: 0.21s; }
[data-stagger].in > *:nth-child(4)  { transition-delay: 0.29s; }
[data-stagger].in > *:nth-child(5)  { transition-delay: 0.37s; }
[data-stagger].in > *:nth-child(6)  { transition-delay: 0.45s; }
[data-stagger].in > *:nth-child(7)  { transition-delay: 0.53s; }
[data-stagger].in > *:nth-child(8)  { transition-delay: 0.61s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-title .word, .hero .hero-fade { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee-track { animation: none !important; }
  * { animation-duration: 0.001s !important; }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.45s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(5, 25, 42, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(5, 25, 42, 0.35);
}
.site-header.hidden { transform: translateY(-100%); }
body.nav-open .site-header {
  transform: none;
  z-index: 1102;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo — reine Bildmarke (Schriftzug und Claim stecken in der Grafik).
   Die Klasse .logo-mark-only im Markup kennzeichnet diese Variante. */
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-img {
  height: 54px;
  width: auto;
  aspect-ratio: 315 / 112;   /* Seitenverhältnis der Logodatei */
  object-fit: contain;
  display: block;
}
.site-footer .logo-img { height: 48px; }

@media (max-width: 420px) {
  .logo-img { height: 46px; }
  .site-footer .logo-img { height: 42px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.4vw, 1.4rem);
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  position: relative;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: #fff; }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }

.chev {
  width: 9px; height: 9px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
  margin-top: -3px;
}
.has-dropdown:hover .chev { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 280px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown::before {
  content: "";
  position: absolute; top: -10px; left: 0; right: 0; height: 12px;
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.25s var(--ease-out);
}
.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--navy-900);
  padding-left: 20px;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-cta { flex-shrink: 0; }

/* Burger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  place-items: center;
  color: #fff;
  z-index: 1102;
}
.nav-toggle .bars { width: 24px; height: 16px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s, top 0.35s var(--ease-out);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
body.nav-open .nav-toggle .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
body.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(1.6rem, 7vw, 3.5rem) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  overflow-y: auto;
}
body.nav-open .mobile-menu { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

.mobile-menu a { color: #fff; }
.mobile-menu-list > li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
body.nav-open .mobile-menu-list > li { opacity: 1; transform: none; }
body.nav-open .mobile-menu-list > li:nth-child(1) { transition-delay: 0.10s; }
body.nav-open .mobile-menu-list > li:nth-child(2) { transition-delay: 0.16s; }
body.nav-open .mobile-menu-list > li:nth-child(3) { transition-delay: 0.22s; }
body.nav-open .mobile-menu-list > li:nth-child(4) { transition-delay: 0.28s; }
body.nav-open .mobile-menu-list > li:nth-child(5) { transition-delay: 0.34s; }
body.nav-open .mobile-menu-list > li:nth-child(6) { transition-delay: 0.40s; }

.mobile-menu-list > li > a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.4vw, 2.4rem);
  font-weight: 700;
  padding: 0.45rem 0;
  letter-spacing: -0.01em;
}
.mobile-menu-list > li > a:active { color: var(--accent); }
.mobile-sub {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  padding: 2px 0 10px;
}
.mobile-sub a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 3px 0;
}
.mobile-menu .btn { margin-top: 1.6rem; align-self: flex-start; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn .arr { transition: transform 0.3s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: scale(0.97); }

.btn-accent {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 85, 140, 0.30);
}
.btn-accent:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 11px 20px; font-size: 0.88rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}
.link-more .arr { transition: transform 0.3s var(--ease-out); color: var(--accent-strong); }
.link-more:hover .arr { transform: translateX(5px); }

.arr { flex-shrink: 0; }

/* ============================================================
   Sections & headings
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(88, 173, 224, 0.08), transparent 60%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: rgba(255, 255, 255, 0.82);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 3px;
  background: var(--accent-strong);
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--accent); }

.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.66); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.head-row .section-head { margin-bottom: 0; }
.head-row { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ============================================================
   Hero (Home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease-out) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
/* Videobild auf die Markenfarbe ziehen - der warme Sonnenuntergang
   kollidiert sonst mit dem Blau der Marke. Nur wo Blend-Modi greifen,
   sonst bliebe ein deckender Block stehen. */
@supports (mix-blend-mode: color) {
  .hero-media video { filter: saturate(0.80); }
  .hero-media::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--navy-800);
    mix-blend-mode: color;
    opacity: 0.45;
    pointer-events: none;
  }
}

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(78deg, rgba(5, 25, 42, 0.56) 8%, rgba(5, 25, 42, 0.28) 46%, rgba(5, 25, 42, 0.05) 100%),
    linear-gradient(0deg, rgba(5, 25, 42, 0.46) 0%, transparent 34%);
}

.hero-content { padding: calc(var(--header-h) + 3rem) 0 7rem; }
.hero .eyebrow { color: var(--accent); }

.hero-title {
  font-size: var(--fs-hero);
  color: #fff;
  max-width: 15ch;
  margin-bottom: 1.4rem;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em) rotate(1.5deg);
  animation: wordUp 0.85s var(--ease-out) forwards;
  animation-delay: calc(0.25s + var(--i, 0) * 0.075s);
}
@keyframes wordUp {
  to { opacity: 1; transform: none; }
}
.hero-title .accent-word { color: var(--accent); }

.hero-fade {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.9s var(--ease-out) forwards;
}
.hero-sub { animation-delay: 0.85s; }
.hero-ctas { animation-delay: 1.05s; }
.hero-stats { animation-delay: 1.3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-sub {
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.3rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 54ch;
  margin-bottom: 2.4rem;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vh, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  width: fit-content;
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat .stat-num .suffix { color: var(--accent); }
.stat .stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.8s forwards;
}
.scroll-hint::after {
  content: "";
  width: 1.5px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Page hero (subpages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(88, 173, 224, 0.13), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(700px 420px at 80% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(700px 420px at 80% 20%, #000 10%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.6rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--accent); }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw + 0.4rem, 3.8rem);
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1.2rem;
}
.page-hero .lead {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
}

/* ============================================================
   Logo marquee
   ============================================================ */
.logos-band { padding: 2.6rem 0; border-bottom: 1px solid var(--line); }
.logos-band .band-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.7rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - clamp(1.5rem, 3.5vw, 2.75rem))); }
}
.marquee .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  /* Kontrast 3.52:1 auf Weiss. Bei 20px fett verlangt WCAG AA 3:1;
     der frühere Wert #94a3b8 erreichte nur 2.56:1. */
  color: #7c8a9c;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee .brand:hover { color: var(--navy-900); }

/* ============================================================
   Cards — Leistungen
   ============================================================ */
.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, border-color 0.45s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleY(1); }

.icon-tile {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy-900);
  color: var(--accent);
  transition: transform 0.45s var(--ease-out), background 0.3s ease;
}
.icon-tile svg { width: 26px; height: 26px; }
.service-card:hover .icon-tile { transform: scale(1.08) rotate(-4deg); }

/* zwei Zeilen Mindesthoehe, damit Untertitel und Liste in allen Karten
   auf gleicher Hoehe beginnen - sonst versetzt ein zweizeiliger Titel
   den gesamten Karteninhalt um eine Zeile */
.service-card h3 { font-size: 1.18rem; }
/* Untertitel auf zwei Zeilen festlegen, damit die Aufzaehlungen in allen
   Karten auf gleicher Hoehe beginnen. Der freie Raum wandert von hier in
   die Liste, sonst dehnt sich der Untertitel und drueckt die Liste nach
   unten (bei nur zwei Aufzaehlungspunkten besonders auffaellig). */
.service-card p { color: var(--muted); font-size: 0.94rem; }
/* Mindesthoehen nur im mehrspaltigen Layout: dort richten sie Untertitel und
   Aufzaehlung aller Karten auf eine Linie. Einspaltig (Handy) passen Titel und
   Untertitel in eine Zeile - die Mindesthoehe erzeugte dort leere Luecken. */
@media (min-width: 641px) {
  .service-card h3 { min-height: 2.25em; }
  .service-card p  { min-height: 3.3em; }
}
.service-card ul { display: grid; gap: 6px; align-content: start; flex-grow: 1; }
.service-card ul li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.service-card ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 10px; height: 2px;
  background: var(--accent-strong);
}
.service-card .link-more { margin-top: 0.4rem; }

/* ============================================================
   Why / pillars (dark)
   ============================================================ */
.pillars { grid-template-columns: repeat(4, 1fr); }
.pillar {
  padding: 1.9rem 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  transition: transform 0.4s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
}
.pillar:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(88, 173, 224, 0.4);
}
.pillar .icon-tile {
  background: rgba(88, 173, 224, 0.12);
  margin-bottom: 1.1rem;
}
.pillar h3 { font-size: 1.05rem; margin-bottom: 0.5rem; letter-spacing: 0.01em; }
.pillar p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }

/* ============================================================
   Case / Referenzen cards
   ============================================================ */
.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.case-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.case-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(5, 25, 42, 0.95) 18%, rgba(5, 25, 42, 0.45) 55%, rgba(5, 25, 42, 0.18) 100%);
  transition: background 0.4s ease;
}
.case-card:hover img { transform: scale(1.06); }

.case-body { padding: 1.8rem; width: 100%; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(88, 173, 224, 0.16);
  color: var(--accent);
  border: 1px solid rgba(88, 173, 224, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tag.tag-plain {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}
.case-body h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; }
.case-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 0.9rem; }
.case-points { display: grid; gap: 5px; margin-bottom: 1rem; }
.case-points li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 18px;
  position: relative;
}
.case-points li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 9px; height: 2px;
  background: var(--accent);
}
.case-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
}
.case-metric .big {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.case-metric .small { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }

/* Filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.3s ease;
}
.filter-btn:hover { border-color: var(--navy-800); color: var(--navy-900); }
.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.case-grid { grid-template-columns: repeat(3, 1fr); }
.case-item { transition: opacity 0.45s ease, transform 0.45s var(--ease-out); }
.case-item.filter-hide {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
.case-grid-wrap { position: relative; }

/* ============================================================
   Network chips / expertise
   ============================================================ */
.chip-grid { grid-template-columns: repeat(3, 1fr); }
.chip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}
.chip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-strong);
}
.chip-card .icon-tile { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.chip-card .icon-tile svg { width: 21px; height: 21px; }

/* ============================================================
   Team
   ============================================================ */
.team-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.team-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  align-items: start;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(88, 173, 224, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.avatar {
  position: relative;
  overflow: hidden;
  width: 132px; height: 132px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-950);
  background: conic-gradient(from 210deg, #7cc2e8, var(--accent-strong), #a6d7f0, var(--accent));
  border: 4px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
/* Foto füllt den Kreis; fehlt die Bilddatei, bleiben die Initialen sichtbar */
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-card h3 { font-size: 1.3rem; margin-bottom: 2px; }
.team-card .role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.team-card p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.68); margin-bottom: 1rem; }
.team-card .link-more { color: #fff; }

/* Light variant (team page) */
.team-card.light {
  background: #fff;
  border-color: var(--line);
}
.team-card.light:hover { border-color: var(--accent-strong); box-shadow: var(--shadow-md); }
.team-card.light h3 { color: var(--ink); }
.team-card.light .role { color: var(--accent-deep); }
.team-card.light p { color: var(--muted); }
.team-card.light .link-more { color: var(--navy-800); }
.team-card.light .avatar { border-color: var(--bg-soft); }

/* ============================================================
   Steps (process)
   ============================================================ */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step {
  position: relative;
  padding: 2rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  counter-increment: step;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-strong);
  display: block;
  margin-bottom: 0.9rem;
  line-height: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ============================================================
   Detail sections (Leistungen page)
   ============================================================ */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav-track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}
.subnav-track::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.subnav a:hover { background: var(--bg-soft); color: var(--navy-900); }
.subnav a.active { background: var(--navy-900); color: #fff; }

.detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}
.detail + .detail { border-top: 1px solid var(--line); }
.detail:nth-child(even) .detail-media { order: -1; }
.detail h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 1rem; }
.detail .detail-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.detail .detail-kicker::before { content: ""; width: 30px; height: 3px; background: var(--accent-strong); border-radius: 2px; }
.detail p { color: var(--muted); margin-bottom: 1.2rem; }
.detail-list { display: grid; gap: 10px; margin-bottom: 1.6rem; }
.detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.detail-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(88, 173, 224, 0.18);
  color: var(--accent-deep);
  display: grid; place-items: center;
  margin-top: 2px;
}
.detail-list .check svg { width: 13px; height: 13px; }

.detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  box-shadow: var(--shadow-md);
}
.detail-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.detail-media:hover img { transform: scale(1.05); }
.detail-media .media-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(5, 25, 42, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.detail-media .media-badge .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
}

/* ============================================================
   Partner section
   ============================================================ */
.partner-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.partner-logo-pane {
  display: grid;
  place-items: center;
  padding: 3rem 2rem;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}
.partner-logo-pane .partner-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.partner-logo-pane .partner-tagline {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  text-transform: uppercase;
  text-align: center;
}
.partner-logo-pane .partner-sub {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}
.partner-body { padding: clamp(1.8rem, 3.5vw, 2.8rem); }
.partner-body h3 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.partner-body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1rem; }
.partner-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-top: 1.4rem;
}
.partner-capabilities li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}
.partner-capabilities .dotico {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(88, 173, 224, 0.16);
  color: var(--accent-deep);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.partner-capabilities .dotico svg { width: 17px; height: 17px; }

.values-row { grid-template-columns: repeat(4, 1fr); text-align: center; }
.value-item { padding: 1.6rem 1rem; }
.value-item .icon-tile { margin: 0 auto 1rem; background: var(--navy-900); }
.value-item h3 { font-size: 0.98rem; }

.partner-logos-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
  align-items: center;
}
.partner-logos-strip .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  /* 17.6px fett bleibt unter der WCAG-Schwelle fuer grosse Schrift
     (18.66px), daher sind 4.5:1 noetig. var(--muted) erreicht 4.76:1. */
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}
.partner-logos-strip .brand:hover { color: var(--navy-900); transform: translateY(-2px); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(88, 173, 224, 0.16), transparent 60%),
    linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border: 1.5px solid rgba(88, 173, 224, 0.25);
  border-radius: 50%;
  animation: slowSpin 24s linear infinite;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: 20px; top: 30px;
  width: 140px; height: 140px;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: slowSpin 16s linear infinite reverse;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.68); max-width: 46ch; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }


.cta-band .pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease-out);
}
.cta-band .pdf-link span { font-weight: 400; color: rgba(255, 255, 255, 0.45); }
.cta-band .pdf-link svg { transition: transform 0.3s var(--ease-out); color: var(--accent); }
.cta-band .pdf-link:hover { color: #fff; }
.cta-band .pdf-link:hover svg { transform: translateY(3px); }

/* ============================================================
   Kontakt
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.form-field label .req { color: var(--accent-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 0.95rem;
  background: var(--bg-soft);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(88, 173, 224, 0.18);
}
.form-field.error input,
.form-field.error textarea,
.form-field.error select { border-color: #dc2626; }
.form-field .err-msg {
  display: none;
  font-size: 0.78rem;
  color: #dc2626;
}
.form-field.error .err-msg { display: block; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }

.form-error {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 11px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
}
.form-error a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

#contactForm button[disabled] { opacity: 0.65; cursor: wait; }

/* Honeypot — moved off-screen instead of display:none so bots still see it */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.form-success.show { display: block; animation: fadeUp 0.6s var(--ease-out); }
.form-success .success-icon {
  width: 74px; height: 74px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(88, 173, 224, 0.18);
  color: var(--accent-deep);
  display: grid; place-items: center;
}
.form-success .success-icon svg { width: 34px; height: 34px; }
.form-success h3 { margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); }

.contact-aside { display: grid; gap: 1.4rem; }
.info-card {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.info-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.93rem;
}
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row .icon-tile {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(88, 173, 224, 0.13);
  flex-shrink: 0;
}
.info-row .icon-tile svg { width: 18px; height: 18px; }
.info-row a:hover { color: var(--accent); }
.info-row .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p { margin-top: 1.1rem; max-width: 30ch; font-size: 0.9rem; }
.footer-col h3 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 9px; }
/* Kachel ausnehmen: sie bringt ihren eigenen Übergang mit. Ohne das
   überschreibt diese Regel ihn (höhere Spezifität) und der Hover springt. */
.footer-col a:not(.social-tile) {
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}
/* Kachel ausnehmen: die färbt ihren Hintergrund ein und braucht ein
   dunkles Symbol — sonst wäre es unsichtbar (gleiche Farbe). */
.footer-col a:not(.social-tile):hover { color: var(--accent); padding-left: 5px; }

/* Follow us — Bildmarke nach Vorbild klassischer Beratungs-Footer */
.follow-us {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 1.7rem;
}
.follow-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.social-tile {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--navy-950);
  will-change: transform;
  transition:
    background-color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.social-tile:hover,
.social-tile:focus-visible {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(5, 25, 42, 0.45);
}
.social-tile svg { transition: transform 0.35s var(--ease-out); }
.social-tile:hover svg { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .social-tile, .social-tile svg { transition: none; }
  .social-tile:hover { transform: none; }
  .social-tile:hover svg { transform: none; }
}
.social-tile svg { width: 21px; height: 21px; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  /* Rechts Platz lassen: der schwebende Nach-oben-Button (fixiert, z-index 900)
     würde sonst den LinkedIn-Button überdecken und unklickbar machen.
     Gilt auf ALLEN Breiten — auf Mobil sitzt der Button je nach Umbruch
     ebenfalls rechts und kollidiert sonst. */
  padding-right: 64px;
  font-size: 0.82rem;
  /* 0.4 ergab nur 3.78:1 auf dem Navy-Grund - zu wenig fuer 13px.
     0.55 ergibt 6.04:1 und bleibt dezenter als der uebrige Footer (0.65). */
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .legal { display: flex; gap: 1.4rem; }
.footer-bottom a:hover { color: var(--accent); }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s var(--ease-out);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--navy-950); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Legal pages (Impressum / Datenschutz)
   ============================================================ */
/* kleiner Zusatzhinweis in der Anbieter-Karte (Marke vs. Firmierung) */
.legal-card .legal-hinweis { margin-top: .7rem; font-size: .88rem; color: var(--muted); }

.legal-content {
  max-width: 800px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.legal-content h2 {
  font-size: 1.45rem;
  margin: 2.8rem 0 1rem;
  padding-top: 0.4rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.08rem;
  margin: 1.8rem 0 0.6rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul {
  margin: 0 0 1rem;
  display: grid;
  gap: 8px;
}
.legal-content ul li {
  padding-left: 22px;
  position: relative;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 2px;
  background: var(--accent-strong);
}
.legal-content a {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.legal-content a:hover { color: var(--accent-deep); }

.legal-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-strong);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.4rem;
}
.legal-card p { margin-bottom: 0.3rem; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: var(--ink); }

.legal-placeholder {
  background: #fef9c3;
  border-radius: 5px;
  padding: 1px 7px;
  font-weight: 600;
  color: #854d0e;
  white-space: nowrap;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Cookie Consent
   ============================================================ */
body.cc-lock { overflow: hidden; }

.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, calc(100% + 40px));
  z-index: 1500;
  width: min(1080px, 100% - 2rem);
  background: rgba(5, 25, 42, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(5, 25, 42, 0.45);
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease, visibility 0.7s;
}
.cc-banner.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.cc-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.4rem 1.8rem;
  flex-wrap: wrap;
}
.cc-banner-text { flex: 1 1 380px; }
.cc-banner-text h3 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.cc-banner-text p { font-size: 0.86rem; line-height: 1.55; }
.cc-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.cc-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.cc-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 4px;
  transition: color 0.25s ease;
}
.cc-link:hover { color: var(--accent); }

/* Modal */
.cc-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  visibility: hidden;
}
.cc-modal-wrap.open { visibility: visible; }
.cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 25, 42, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cc-modal-wrap.open .cc-backdrop { opacity: 1; }
.cc-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.cc-modal-wrap.open .cc-modal { opacity: 1; transform: none; }
.cc-modal h3 { font-size: 1.35rem; margin-bottom: 0.5rem; padding-right: 2.4rem; }
.cc-modal-intro { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }

.cc-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  background: var(--bg-soft);
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out);
}
.cc-close:hover { background: var(--navy-900); color: #fff; transform: rotate(90deg); }
.cc-close svg { width: 18px; height: 18px; }

.cc-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.25s ease;
}
.cc-category:hover { border-color: var(--accent-strong); }
.cc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.cc-category h4 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.cc-category p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.cc-switch {
  flex-shrink: 0;
  width: 52px; height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.3s ease;
  cursor: pointer;
}
.cc-switch .cc-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  color: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(5, 25, 42, 0.25);
  transition: transform 0.3s var(--ease-out);
}
.cc-switch .cc-knob svg {
  width: 12px; height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cc-switch.on { background: var(--accent-strong); }
.cc-switch.on .cc-knob { transform: translateX(22px); }
.cc-switch.on .cc-knob svg { opacity: 1; }
.cc-switch.locked { cursor: not-allowed; opacity: 0.7; }
.cc-switch:focus-visible { outline: 3px solid rgba(88, 173, 224, 0.5); outline-offset: 2px; }

.cc-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.cc-modal-actions .cc-link { color: var(--muted); }
.cc-modal-actions .cc-link:hover { color: var(--navy-900); }

@media (max-width: 640px) {
  .cc-banner { bottom: 12px; }
  .cc-banner-actions { width: 100%; }
  .cc-banner-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-modal, .cc-backdrop, .cc-switch .cc-knob { transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4, .pillars { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav-links, .site-header .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 2rem; }
  .detail:nth-child(even) .detail-media { order: 0; }
  .partner-feature { grid-template-columns: 1fr; }
  .partner-logo-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-layout { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .case-grid, .chip-grid, .pillars { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 1.4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-card { grid-template-columns: 1fr; }
  .avatar { width: 104px; height: 104px; font-size: 1.7rem; }
  .cta-band { padding: 2.2rem 1.6rem; }
  .case-card { min-height: 420px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }
}
