/* ========== POSSEHL DIGITAL — STYLES ========== */

:root {
  --c-ink:        #0B1F3A;   /* Possehl Deep Navy */
  --c-ink-2:      #16335C;
  --c-ink-3:      #1F4F8A;
  --c-cyan:       #3DB5E6;   /* Light Accent */
  --c-cyan-soft:  #B7E3F4;
  --c-magenta:    #D6336C;   /* Highlight */
  --c-magenta-2:  #9E1C4C;

  --c-bg:         #FFFFFF;
  --c-bg-soft:    #F5F7FA;
  --c-bg-card:    #EEF2F7;
  --c-line:       #E2E8F0;
  --c-muted:      #5A6B82;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 2px 8px rgba(11,31,58,.04);
  --shadow-md: 0 6px 24px rgba(11,31,58,.08), 0 2px 6px rgba(11,31,58,.05);

  --max: 1180px;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- TOP NAV ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px var(--pad-x);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(11,31,58,.06);
}
.brand { margin-right: auto; }   /* pushes everything else to the right */
.brand {
  display: inline-flex;
  align-items: center;
  height: 32px;
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  /* The brand SVG includes a "g" descender, which makes its bounding box
     center sit ~2px below the cap-height center of the wordmark. Pull the
     logo up so its "Possehl Digital" wordmark optically aligns with the
     nav text baseline. */
  transform: translateY(-2px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  white-space: nowrap;
}
.nav-links li { display: inline-flex; align-items: center; }

/* --- Burger button (mobile only) --- */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  background: var(--c-bg-card);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink-2);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* iPad / mid-size desktop — shrink nav before hiding it */
@media (max-width: 1200px) and (min-width: 981px) {
  .nav-links { font-size: 12px; gap: 14px; }
  .nav-links a { padding: 2px 0; }
}

@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    font-size: 15px;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px var(--pad-x);
    color: var(--c-ink);
  }
  .nav-links a:hover { background: var(--c-bg-card); color: var(--c-ink-2); }
}
.nav-links a {
  color: var(--c-muted);
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--c-ink); }

/* Language toggle */
.lang-toggle {
  margin-left: clamp(10px, 1.5vw, 18px);
  background: var(--c-bg-card);
  border: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-toggle:hover { background: var(--c-ink-2); color: white; }
.lang-toggle .lang-sep { opacity: .4; }
html[lang="de"] .lang-toggle .lang-de,
html[lang="en"] .lang-toggle .lang-en { color: var(--c-ink-2); }
html[lang="en"] .lang-toggle:hover .lang-en,
html[lang="de"] .lang-toggle:hover .lang-de { color: white; }

/* ===== MOBILE TWEAKS — iPhone & iPad ===== */
@media (max-width: 760px) {
  :root {
    --pad-x: 20px;
  }
  body { overflow-x: hidden; }
  .slide {
    min-height: auto;
    padding: 60px var(--pad-x) 56px;
    text-align: center;
  }
  .slide-inner { text-align: center; }
  .eyebrow { letter-spacing: .1em; font-size: 11.5px; }

  h1 {
    font-size: 28px !important;
    line-height: 1.2;
    letter-spacing: -.015em;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;          /* never break mid-word, even at soft-hyphens */
  }
  h2 {
    font-size: 22px !important;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
  h3 { font-size: 16px; }
  .lede { font-size: 14.5px; line-height: 1.5; }

  /* Hero — centered, compact */
  .slide-hero { text-align: center !important; padding-top: 110px; padding-bottom: 80px; }
  .hero-content { text-align: center !important; }
  .hero-content .lede { margin: 8px auto 0 !important; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; justify-content: center !important; }
  .hero-cta .btn { width: 100%; padding: 12px 18px; font-size: 14px; justify-content: center; }
  .scroll-hint { bottom: 24px; }

  /* Top nav */
  .topnav { padding: 10px var(--pad-x); gap: 8px; }
  .brand-logo { height: 22px; }
  .lang-toggle { padding: 5px 9px; font-size: 11px; }
  .nav-burger { width: 34px; height: 34px; }

  /* Logo marquee */
  .marquee-stack { margin-top: 32px; gap: 12px; }
  .marquee-group { gap: 28px; padding-right: 28px; }
  .marquee-group img { height: 24px; max-width: 110px; }

  /* Bridge — stack and centre */
  .bridge { margin-top: 36px; gap: 20px; }
  .bridge::before { display: none; }
  .bridge-side { padding: 24px 20px; }
  .bridge-icon { width: 50px; height: 50px; }
  .bridge-hub { width: 90px; height: 90px; }
  .bridge-hub-logo { width: 44px; }

  /* Situation — quote + pains stack */
  .situation-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .quote-card { min-height: auto; padding: 28px 22px; text-align: left; }
  .quote-card p { font-size: 18px; }
  .pain { padding: 16px 18px; text-align: left; }

  /* Steps + focus cards */
  .steps { margin-top: 36px; gap: 12px; }
  .step { padding: 22px 18px; text-align: left; }
  .step p { font-size: 13.5px; }
  .focus-grid { margin-top: 36px; gap: 14px; }
  .focus-card {
    padding: 26px 22px;
    text-align: center;
    align-items: center;
  }
  .focus-card h3 { min-height: auto; text-align: center; }
  .focus-card .focus-sub { text-align: center; }
  .focus-card ul {
    font-size: 13.5px;
    text-align: left;
    display: inline-block;     /* shrink to content for centering */
    margin: 0 auto;
  }
  .focus-icon { margin-left: auto; margin-right: auto; }

  /* Portfolio cards — single 2-column grid with the order requested */
  .portfolio-rows {
    margin-top: 36px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    flex-direction: initial !important;
  }
  .portfolio-row,
  .portfolio-row-offset {
    display: contents !important;
    padding: 0 !important;
    grid-template-columns: initial !important;
  }
  .portfolio-card { padding: 18px 12px !important; min-height: 120px !important; gap: 12px; }
  .pc-logo { height: 30px; }
  .pc-label { font-size: 11.5px; }

  /* Because .portfolio-row uses display:contents on mobile it has no
     bounding box, so the IntersectionObserver-driven .stagger.pre fade-in
     never fires. Force the cards visible. */
  .portfolio-rows .stagger > .portfolio-card,
  .portfolio-rows .stagger.pre > .portfolio-card,
  .portfolio-rows .portfolio-card {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Pair the cards as the user laid them out on mobile */
  .portfolio-card[data-detail="pds"]              { order: 1; }
  .portfolio-card[data-detail="mono"]             { order: 2; }
  .portfolio-card[data-detail="secure"]           { order: 3; }
  .portfolio-card[data-detail="tenzing"]          { order: 4; }
  .portfolio-card[data-detail="simplifier"]       { order: 5; }
  .portfolio-card[data-detail="cluetec"]          { order: 6; }
  .portfolio-card[data-detail="optenda"]          { order: 7; }
  .portfolio-card[data-detail="online-solutions"] { order: 8; }
  .portfolio-card[data-detail="bitnamic"] {
    order: 9;
    grid-column: 1 / -1;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Network — compact "Gateway"-sized cards in two even columns */
  .network-grid {
    margin-top: 32px !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .net-card {
    min-height: 110px !important;
    padding: 14px 10px 12px !important;
    gap: 8px;
    border-radius: 12px;
    border-width: 1px;
  }
  .net-logo { min-height: 40px; flex: 0 0 auto; }
  .net-logo img { max-height: 34px; max-width: 80%; }
  .net-card p { font-size: 11px; line-height: 1.25; }
  /* Last orphan card → centre across both columns at half-width */
  .network-grid > .net-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Check list */
  .check-list { margin-top: 32px; gap: 10px; }
  .check-list li { padding: 14px 16px; gap: 12px; text-align: left; }
  .check-list .check { flex: 0 0 24px; width: 24px; height: 24px; font-size: 12px; }
  .check-list p { font-size: 13.5px; }

  /* Fields */
  .fields-grid { margin-top: 32px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .field { padding: 18px 10px; min-height: 80px; font-size: 12.5px; }

  /* Contact — centred on mobile */
  .contact-card { margin-top: 28px; grid-template-columns: 1fr; gap: 18px; }
  .contact-photo { min-height: 220px; }
  .contact-body { padding: 24px 22px; text-align: center; }
  .contact-body h3 { font-size: 20px; }
  .contact-body .role { font-size: 13.5px; }
  .contact-lines { align-items: center; }
  .contact-lines a { font-size: 14px; justify-content: center; }

  /* Footer */
  .slide-footer { padding: 48px var(--pad-x) 32px; }
  .footer-inner { gap: 14px; }
  .footer-inner h2 { font-size: 19px !important; }
  .footer-links { flex-direction: column; gap: 8px; align-items: center; }
  .footer-links li { font-size: 13.5px; }
  .imprint p { font-size: 12.5px; }

  /* Modal — full-screen, centred content on phones */
  .portfolio-modal { padding: 0; }
  .modal-card {
    max-height: 100dvh;
    border-radius: 0;
    padding: 56px 22px 30px;
    text-align: center;
  }
  .modal-head { gap: 12px; margin-bottom: 18px; padding-bottom: 18px; }
  .modal-logo { height: 42px; max-width: 70%; }
  .modal-logo-secondary { height: 26px; }
  .modal-title {
    font-size: 22px !important;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .modal-eyebrow { font-size: 11px; }
  .modal-lede {
    font-size: 14px;
    text-align: center;
    hyphens: none;
  }
  .modal-grid { grid-template-columns: 1fr; gap: 22px; }
  /* Cases list — heading centred, bullets left-aligned inside a centred block */
  .modal-cases { text-align: center; }
  .modal-cases h4,
  .modal-sidebar-block h4 {
    font-size: 11.5px;
    text-align: center;
  }
  .modal-cases ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
    max-width: 92%;
  }
  .modal-cases .uc-title { display: block; margin-bottom: 2px; }
  .modal-sidebar { padding: 18px 16px 18px; align-items: center; }
  .modal-cases li {
    font-size: 13px;
    padding-left: 18px;
    hyphens: none;
    overflow-wrap: break-word;
  }
  .modal-cases li::before { width: 6px; height: 6px; }
  .modal-sidebar-block { text-align: center; }
  .modal-industries {
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px !important;
    justify-items: start;       /* all bullets start on the same x-axis */
    max-width: 280px;
    margin: 4px auto 0 !important;
    text-align: left;
  }
  .modal-industries li {
    font-size: 13px;
    padding-left: 14px;
    text-align: left;
  }
  .modal-customer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-width: 340px;
    margin: 0 auto;
  }
  .modal-customer-grid li { height: 42px; }
  .modal-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .modal-cta { margin: 0 auto; }
}

@media (max-width: 420px) {
  .portfolio-row,
  .portfolio-row-offset { grid-template-columns: 1fr; }
}


/* ---------- SLIDE BASE ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  padding: clamp(80px, 10vh, 120px) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}
.slide-inner {
  width: 100%;
  max-width: var(--max);
  text-align: center;
  margin: 0 auto;
}
.slide-inner .lede {
  margin-left: auto;
  margin-right: auto;
}
.slide-light { background: var(--c-bg); }
.slide-light + .slide-light { border-top: 1px solid var(--c-line); }

/* ---------- TYPO ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 0 0 18px;
}
.eyebrow.muted { color: var(--c-magenta); }

h1, h2, h3, h4 {
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--c-ink);
}
h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.05;
  font-weight: 500;
}
h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}
h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  margin-bottom: 8px;
}
h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
p { margin: 0 0 14px; }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 760px;
  color: var(--c-ink);
}
.lede.muted { color: var(--c-muted); }

.accent-light {
  background: linear-gradient(90deg, #B7E3F4 0%, #3DB5E6 60%, #1F4F8A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .005em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: white;
  color: var(--c-ink);
  box-shadow: 0 8px 30px rgba(11,31,58,.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(11,31,58,.28);
}
.btn-ghost {
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}

/* ====================================================== */
/* ---------- HERO ---------- */
/* ====================================================== */
.slide-hero {
  color: white;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(120px, 16vh, 200px);
  text-align: left;
}
.hero-cta { justify-content: flex-start; }
.slide-hero h1,
.slide-hero h2,
.slide-hero h3,
.slide-hero h4 { color: white; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 0% 80%, rgba(214,51,108,.55) 0%, transparent 60%),
    radial-gradient(ellipse 80% 90% at 100% 10%, rgba(61,181,230,.6) 0%, transparent 60%),
    linear-gradient(135deg, #0B1F3A 0%, #16335C 45%, #1F4F8A 100%);
}
.hero-fibers {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-fibers span {
  position: absolute;
  bottom: -10%;
  width: 2px;
  height: 80%;
  background: linear-gradient(to top, transparent 0%, rgba(183,227,244,.0) 30%, rgba(183,227,244,.7) 80%, rgba(255,255,255,.95) 100%);
  border-radius: 2px;
  filter: blur(.4px);
  opacity: .65;
  animation: fiber-rise 7.5s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero-fibers span::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px; height: 8px;
  background: rgba(183,227,244,.95);
  border-radius: 50%;
  box-shadow: 0 0 14px 3px rgba(183,227,244,.7);
  animation: tip-pulse 3.5s ease-in-out infinite;
}
/* Distribute fibers */
.hero-fibers span:nth-child(1)  { left: 4%;  height: 60%; animation-delay: 0s;  }
.hero-fibers span:nth-child(2)  { left: 8%;  height: 75%; animation-delay: .3s; }
.hero-fibers span:nth-child(3)  { left: 12%; height: 50%; animation-delay: .6s; }
.hero-fibers span:nth-child(4)  { left: 16%; height: 82%; animation-delay: .9s; }
.hero-fibers span:nth-child(5)  { left: 20%; height: 65%; animation-delay: 1.2s; }
.hero-fibers span:nth-child(6)  { left: 24%; height: 88%; animation-delay: 1.5s; }
.hero-fibers span:nth-child(7)  { left: 28%; height: 55%; animation-delay: 1.8s; }
.hero-fibers span:nth-child(8)  { left: 32%; height: 78%; animation-delay: 2.1s; }
.hero-fibers span:nth-child(9)  { left: 36%; height: 62%; animation-delay: 2.4s; }
.hero-fibers span:nth-child(10) { left: 40%; height: 85%; animation-delay: 2.7s; }
.hero-fibers span:nth-child(11) { left: 44%; height: 58%; animation-delay: 3.0s; }
.hero-fibers span:nth-child(12) { left: 48%; height: 80%; animation-delay: 3.3s; }
.hero-fibers span:nth-child(13) { left: 52%; height: 68%; animation-delay: 3.6s; }
.hero-fibers span:nth-child(14) { left: 56%; height: 90%; animation-delay: 3.9s; }
.hero-fibers span:nth-child(15) { left: 60%; height: 55%; animation-delay: 4.2s; }
.hero-fibers span:nth-child(16) { left: 64%; height: 75%; animation-delay: 4.5s; }
.hero-fibers span:nth-child(17) { left: 68%; height: 62%; animation-delay: 4.8s; }
.hero-fibers span:nth-child(18) { left: 72%; height: 85%; animation-delay: 5.1s; }
.hero-fibers span:nth-child(19) { left: 76%; height: 50%; animation-delay: 5.4s; }
.hero-fibers span:nth-child(20) { left: 80%; height: 78%; animation-delay: 5.7s; }
.hero-fibers span:nth-child(21) { left: 84%; height: 65%; animation-delay: 6.0s; }
.hero-fibers span:nth-child(22) { left: 88%; height: 88%; animation-delay: 6.3s; }
.hero-fibers span:nth-child(23) { left: 92%; height: 58%; animation-delay: 6.6s; }
.hero-fibers span:nth-child(24) { left: 96%; height: 72%; animation-delay: 6.9s; }
.hero-fibers span:nth-child(25) { left: 6%;  height: 92%; animation-delay: 1.1s; }
.hero-fibers span:nth-child(26) { left: 14%; height: 88%; animation-delay: 2.2s; }
.hero-fibers span:nth-child(27) { left: 38%; height: 95%; animation-delay: 3.3s; }
.hero-fibers span:nth-child(28) { left: 58%; height: 82%; animation-delay: 4.4s; }
.hero-fibers span:nth-child(29) { left: 74%; height: 92%; animation-delay: 5.5s; }
.hero-fibers span:nth-child(30) { left: 90%; height: 88%; animation-delay: 6.6s; }

@keyframes fiber-rise {
  0%, 100% { opacity: .3;  transform: translateY(0)    scaleY(1); }
  50%      { opacity: .95; transform: translateY(-36px) scaleY(1.05); }
}
@keyframes tip-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 14px 3px rgba(183,227,244,.65); }
  50%      { transform: scale(1.6); box-shadow: 0 0 22px 5px rgba(183,227,244,.95); }
}

.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  text-align: left;
}
.hero-content .eyebrow { color: var(--c-cyan-soft); }
.hero-content .lede {
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 8px 0 0;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 18px;
  display: flex; justify-content: center;
}
.scroll-hint span {
  display: block;
  width: 3px; height: 8px;
  background: white;
  border-radius: 2px;
  margin-top: 8px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: .3; }
}

/* ====================================================== */
/* ---------- LOGO MARQUEE (Slide 2) ---------- */
/* ====================================================== */
.marquee-stack {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(60px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--c-bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--c-bg), transparent); }
.marquee {
  overflow: hidden;
  position: relative;
  /* Reserve vertical space so logos don't reflow while images decode */
  min-height: clamp(40px, 5vw, 56px);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee-right 60s linear infinite;
  will-change: transform;
}
.marquee[data-dir="left"] .marquee-track {
  animation-name: marquee-left;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  padding-right: clamp(36px, 5vw, 64px);
  flex-shrink: 0;
}
.marquee-group img {
  height: clamp(28px, 3vw, 36px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex-shrink: 0;
  /* multiply blends white pixels away — removes hard rectangle backgrounds.
     IMPORTANT: brightness/opacity must NOT darken whites, or multiply leaves a grey block.
     We keep brightness(1) and only desaturate; opacity handles the muted look. */
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1.05);
  opacity: .65;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
  /* While the lazy-loaded image is still being fetched the browser would draw
     the alt text and shift the layout — keep it invisible until ready */
  background-color: transparent;
}
.marquee-group img:not([src]),
.marquee-group img[src=""] { visibility: hidden; }
.marquee-group img:hover {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
  transform: scale(1.05);
}
/* Compact form-factor for ultra-wide logos so they don't dominate */
.marquee-group img[src*="possehl-digital-services"],
.marquee-group img[src*="possehl-online-solutions"],
.marquee-group img[src*="possehl-secure"],
.marquee-group img[src*="possehl-spezialbau"],
.marquee-group img[src*="dataspark"] {
  height: clamp(16px, 1.8vw, 22px);
  max-width: 220px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group img:hover { opacity: 1; transform: scale(1.05); }

@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0%, 0, 0); }
}
@keyframes marquee-left {
  from { transform: translate3d(0%, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ====================================================== */
/* ---------- BRIDGE (Slide 3) ---------- */
/* ====================================================== */
.bridge {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  position: relative;
}
/* connecting line that crosses behind everything */
.bridge::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(31,79,138,.25) 18%,
    rgba(31,79,138,.6) 50%,
    rgba(31,79,138,.25) 82%,
    transparent 100%);
  z-index: 0;
}
.bridge-side,
.bridge-center { position: relative; z-index: 1; }

.bridge-side {
  background: var(--c-bg-card);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bridge-side:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(11,31,58,.08);
}
.bridge-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-2);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.bridge-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bridge-hub {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1F4F8A 0%, #0B1F3A 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(31,79,138,.4),
              0 0 0 6px rgba(31,79,138,.08);
  position: relative;
  animation: hub-glow 4s ease-in-out infinite;
}
.bridge-hub-logo {
  width: 56px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}
@keyframes hub-glow {
  0%, 100% { box-shadow: 0 18px 40px rgba(31,79,138,.4), 0 0 0 6px rgba(31,79,138,.08); }
  50%      { box-shadow: 0 18px 50px rgba(61,181,230,.55), 0 0 0 14px rgba(31,79,138,.06); }
}
.hub-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-2);
  letter-spacing: .04em;
  margin: 0;
}
@media (max-width: 820px) {
  .bridge { grid-template-columns: 1fr; }
  .bridge::before { display: none; }
}

/* ====================================================== */
/* ---------- SITUATION (Slide 4) ---------- */
/* ====================================================== */
.situation-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.quote-card {
  background: var(--c-magenta);
  color: white;
  border-radius: var(--r-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 280px;
}
.quote-mark {
  font-size: 80px;
  line-height: .6;
  font-weight: 700;
  font-family: Georgia, serif;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
}
.quote-card p {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pain {
  background: var(--c-bg-card);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  text-align: left;
}
.pain-icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--c-ink-2);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pain h4 { color: var(--c-ink); }
.pain p { color: var(--c-muted); margin: 0; font-size: 14.5px; }

@media (max-width: 820px) {
  .situation-grid { grid-template-columns: 1fr; }
}

/* ====================================================== */
/* ---------- STEPS (Slide 5) ---------- */
/* ====================================================== */
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: var(--c-bg-card);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  text-align: center;
}
.step-num {
  display: inline-block;
  background: var(--c-magenta);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.step h3 { color: var(--c-ink); }
.step p { color: var(--c-muted); font-size: 14.5px; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ====================================================== */
/* ---------- FOCUS GRID (Slide 6) ---------- */
/* ====================================================== */
.focus-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.focus-card {
  background: var(--c-bg-card);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.focus-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-ink-2);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
  flex-shrink: 0;
}
.focus-card h3 {
  color: var(--c-ink);
  margin: 0;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.25;
  min-height: 2.5em; /* keep titles aligned even when one wraps differently */
}
.focus-sub {
  color: var(--c-cyan);
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 0;
}
.focus-card ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--c-muted);
  font-size: 14.5px;
  line-height: 1.45;
}
.focus-card li {
  position: relative;
  padding-left: 18px;
}
.focus-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;       /* aligns with first text line regardless of wrap */
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
}
@media (max-width: 860px) { .focus-grid { grid-template-columns: 1fr; } }

/* ====================================================== */
/* ---------- PORTFOLIO (Slide 7) ---------- */
/* ====================================================== */
.portfolio-rows {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.portfolio-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.portfolio-row-offset {
  grid-template-columns: repeat(4, 1fr);
  padding: 0 calc((100% / 5) / 2);   /* shift inward by half a cell to offset */
}
.portfolio-card {
  background: #DCEEFB;               /* light blue tile per PPT */
  border: none;
  border-radius: var(--r-lg);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  background: #C7E5F7;
  box-shadow: 0 14px 32px rgba(11,31,58,.14);
}
.portfolio-card:focus-visible {
  outline: 2px solid var(--c-ink-2);
  outline-offset: 3px;
}
.pc-logo {
  height: 44px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  mix-blend-mode: multiply;          /* removes the white plate around PNGs */
}
.pc-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.pc-logo-stack .pc-logo { height: 36px; }
.pc-logo-secondary {
  height: 20px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: .85;
}
.pc-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.35;
  margin-top: 2px;
}
@media (max-width: 1100px) {
  .portfolio-row,
  .portfolio-row-offset { grid-template-columns: repeat(3, 1fr); padding: 0; }
}
@media (max-width: 700px) {
  .portfolio-row,
  .portfolio-row-offset { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================== */
/* ---------- NETWORK (Slide 8) ---------- */
/* ====================================================== */
.network-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.net-card {
  border: 1.5px solid var(--c-ink-2);
  border-radius: var(--r-lg);
  padding: 32px 22px 28px;
  background: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.net-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11,31,58,.1);
}
.net-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.net-logo img {
  max-height: 90px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
}
.net-card p {
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 980px) { .network-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .network-grid { grid-template-columns: 1fr; } }

/* ====================================================== */
/* ---------- CHECK LIST (Slide 9) ---------- */
/* ====================================================== */
.check-list {
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--c-bg-card);
  padding: 20px 24px;
  border-radius: var(--r-md);
  text-align: left;
}
.check-list .check {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--c-ink-2);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.check-list p { margin: 0; color: var(--c-ink); font-size: 15.5px; }
.check-list strong { color: inherit; font-weight: 600; }

/* ====================================================== */
/* ---------- FIELDS (Slide 10) ---------- */
/* ====================================================== */
.fields-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.field {
  background: var(--c-bg-card);
  border-radius: var(--r-md);
  padding: 28px 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-ink);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.field:hover {
  background: var(--c-ink-2);
  color: white;
  transform: translateY(-2px);
}
@media (max-width: 980px) { .fields-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fields-grid { grid-template-columns: repeat(2, 1fr); } }

/* ====================================================== */
/* ---------- CONTACT (Slide 11) ---------- */
/* ====================================================== */
.contact-card {
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  gap: 28px;
  max-width: 760px;
  text-align: left;
}
.contact-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 260px;
  background: linear-gradient(135deg, #1F4F8A 0%, #3DB5E6 100%);
  box-shadow: 0 14px 36px rgba(11,31,58,.18);
}
.contact-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 12%;   /* head + upper body in frame */
  transform: scale(1.15);
}
.contact-photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-lines a svg { color: var(--c-cyan); flex-shrink: 0; }
.contact-body {
  background: var(--c-bg-card);
  border-radius: var(--r-lg);
  padding: 32px 32px;
}
.contact-body h3 { font-size: 24px; margin-bottom: 4px; }
.contact-body .role { color: var(--c-muted); margin-bottom: 22px; }
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-lines a {
  color: var(--c-ink-2);
  font-weight: 500;
  transition: color .2s ease;
}
.contact-lines a:hover { color: var(--c-cyan); }

@media (max-width: 680px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-avatar { height: 160px; }
}

/* ====================================================== */
/* ---------- FOOTER (Slide 12) ---------- */
/* ====================================================== */
.slide-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  min-height: auto;
  padding: clamp(56px, 7vh, 80px) var(--pad-x) clamp(36px, 4vh, 50px);
  flex-direction: column;
  gap: 18px;
}
.footer-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-inner h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0;
  line-height: 1.25;
}
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-links li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.footer-links .fl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-bg-card);
  color: var(--c-ink-2);
}
.footer-links a {
  color: var(--c-ink-2);
  font-weight: 500;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--c-cyan); }

.imprint {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.imprint p { margin: 0; }
.imprint-links {
  margin-top: 4px !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.imprint-links a {
  color: var(--c-ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(31,79,138,.3);
  text-underline-offset: 3px;
}
.imprint-links a:hover { color: var(--c-cyan); }
.copyright {
  margin: 0;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
}

/* ====================================================== */
/* ---------- SCROLL REVEAL ---------- */
/* ====================================================== */
.reveal,
.reveal-up,
.reveal-pop,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.pre        { opacity: 0; transform: translateY(28px); }
.reveal-up.pre     { opacity: 0; transform: translateY(40px); }
.reveal-pop.pre    { opacity: 0; transform: scale(.7); }
.reveal-left.pre   { opacity: 0; transform: translateX(-40px); }
.reveal-right.pre  { opacity: 0; transform: translateX(40px); }

/* Stagger children inside a revealed container */
.stagger > * { transition-delay: 0s; }
.stagger.pre > *      { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .15s; }
.stagger > *:nth-child(3) { transition-delay: .25s; }
.stagger > *:nth-child(4) { transition-delay: .35s; }
.stagger > *:nth-child(5) { transition-delay: .45s; }
.stagger > *:nth-child(6) { transition-delay: .55s; }
.stagger > *:nth-child(7) { transition-delay: .65s; }
.stagger > *:nth-child(8) { transition-delay: .75s; }
.stagger > *:nth-child(9) { transition-delay: .85s; }
.stagger > *:nth-child(10){ transition-delay: .95s; }

.slide-hero .reveal { animation: hero-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.pre, .reveal-up.pre, .reveal-pop.pre,
  .reveal-left.pre, .reveal-right.pre,
  .stagger.pre > * { opacity: 1; transform: none; }
  .hero-fibers span { animation: none !important; }
  .bridge-hub { animation: none !important; }
}

/* ====================================================== */
/* ---------- PORTFOLIO DETAIL MODAL ---------- */
/* ====================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,31,58,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade .25s ease;
}
.modal-panel {
  position: relative;
  background: white;
  border-radius: var(--r-xl);
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 80px rgba(11,31,58,.35);
  animation: modal-rise .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes modal-fade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--c-bg-card);
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--c-ink-2); color: white; transform: rotate(90deg); }

.modal-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}
.modal-logo {
  height: 54px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.modal-logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.modal-logo-secondary {
  height: 34px;
  max-width: 200px;
  opacity: .9;
}
.modal-head > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.modal-eyebrow {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.modal-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--c-ink);
}
.modal-lede {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 28px;
  text-align: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.05fr;
  gap: 28px;
  align-items: start;
}
.modal-cases h4,
.modal-sidebar-block h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-magenta);
  margin: 0 0 14px;
}
.modal-cases ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-cases li {
  position: relative;
  padding-left: 22px;
  color: var(--c-ink);
  font-size: 14.5px;
  line-height: 1.5;
}
.modal-cases li::before {
  content: "";
  position: absolute;
  left: 0; top: .65em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
}
.modal-cases li .uc-title {
  font-weight: 600;
  color: var(--c-ink);
}

.modal-sidebar {
  background: var(--c-bg-card);
  border-radius: var(--r-md);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.modal-sidebar-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--c-ink);
}
.modal-sidebar-block li {
  padding-left: 14px;
  position: relative;
}
.modal-sidebar-block li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--c-ink-2);
  font-weight: 700;
}
/* Branchen — 2-column bullet list */
.modal-industries {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px !important;
  margin-top: 4px;
}
.modal-industries li {
  font-size: 14px;
  padding-left: 12px;
  position: relative;
}
.modal-industries li::before {
  content: "·";
  position: absolute;
  left: 0; top: -2px;
  color: var(--c-ink-2);
  font-weight: 700;
  font-size: 18px;
}

/* Customers — static grid of small white tiles with grayscale logos */
.modal-customers-block {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(11,31,58,.08);
}
.modal-customers-block h4 {
  margin-bottom: 12px;
}
.modal-customer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.modal-customer-grid li {
  padding: 0 !important;
  background: white;
  border-radius: 10px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(11,31,58,.05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.modal-customer-grid li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,31,58,.1);
}
.modal-customer-grid li::before { content: none !important; }
.modal-customer-grid img {
  max-width: 78%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .2s ease;
}
.modal-customer-grid li:hover img {
  transform: scale(1.05);
}
.modal-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--c-ink-2);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}
.modal-cta:hover { background: var(--c-cyan); transform: translateY(-1px); }

body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 28px 22px; }
}

/* ====================================================== */
/* ---------- EXTRA MICRO-ANIMATIONS ---------- */
/* ====================================================== */

/* Step cards lift gently on hover, arrows between them subtly pulse */
.step {
  transition: transform .25s cubic-bezier(.2,.7,.2,1),
              box-shadow .25s ease,
              background .25s ease;
  position: relative;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11,31,58,.1);
  background: white;
}
.step:hover .step-num {
  transform: scale(1.08);
}
.step-num { transition: transform .25s ease; }

/* Focus cards subtle hover lift */
.focus-card {
  transition: transform .3s cubic-bezier(.2,.7,.2,1),
              box-shadow .3s ease,
              background .3s ease;
}
.focus-card:hover {
  transform: translateY(-6px);
  background: white;
  box-shadow: 0 18px 40px rgba(11,31,58,.12);
}
.focus-card:hover .focus-icon {
  transform: rotate(-6deg) scale(1.05);
}
.focus-icon { transition: transform .35s cubic-bezier(.2,.7,.2,1); }

/* Quote-mark in situation card gently pulses */
.quote-mark {
  animation: quote-pulse 3.5s ease-in-out infinite;
  transform-origin: bottom left;
}
@keyframes quote-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* Pain rows shimmer-in slightly */
.pain {
  transition: transform .25s ease, background .25s ease;
}
.pain:hover {
  background: white;
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

/* Field tiles lift smoothly */
.field {
  transition: transform .25s cubic-bezier(.2,.7,.2,1),
              background .25s ease,
              color .25s ease,
              box-shadow .25s ease;
}
.field:hover { box-shadow: 0 10px 24px rgba(11,31,58,.18); }

/* Net cards subtle lift + glow */
.net-card:hover { border-color: var(--c-cyan); }
.net-card .net-logo img { transition: transform .35s ease; }
.net-card:hover .net-logo img { transform: scale(1.06); }

/* Check-list rows: arrow-style highlight on hover */
.check-list li {
  transition: transform .2s ease, background .2s ease;
  cursor: default;
}
.check-list li:hover {
  transform: translateX(6px);
  background: white;
  box-shadow: var(--shadow-sm);
}

/* Logo marquee: hovered logo gets a slight tilt */
.marquee-group img { transition: transform .25s ease, filter .25s ease, opacity .25s ease; }
