/* =====================================================
   DigiPS – Homepage Styles
   Markenfarben: Navy/Charcoal + Gradient Pink→Lila→Blau→Cyan
   ===================================================== */

:root {
  --bg: #070b14;
  --bg-elev: #0b1220;
  --bg-alt: #0a1020;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef2f8;
  --muted: #9aa7ba;
  --pink: #ec4899;
  --purple: #a855f7;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --grad: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--cyan));
  --grad-btn: linear-gradient(90deg, #d63a8e, #7c3aed 55%, #2563eb);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }

section[id], [id] { scroll-margin-top: calc(var(--header-h) + 12px); }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
h1 + p, h2 + p { margin-top: 0.9rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sanft wandernder Verlauf für den Hero-Claim */
.grad-animate {
  background-size: 220% 100%;
  animation: gradShift 7s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

/* ---------- Skip-Link (nur bei Tastaturfokus sichtbar) ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Scroll-Fortschritt ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 58, 237, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.88rem; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a:not(.btn) {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: var(--text); }
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--grad);
  transition: right 0.25s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active:not(.btn)::after { right: 0; }
.main-nav a.is-active:not(.btn) { color: var(--text); }

.back-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.back-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + clamp(1.5rem, 3vh, 3rem)) 0 0;
  overflow: hidden;
  box-sizing: border-box;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow-1 { width: 560px; height: 560px; top: -180px; right: -120px; background: radial-gradient(circle, #7c3aed, transparent 65%); }
.hero-glow-2 { width: 520px; height: 520px; bottom: -220px; left: -160px; background: radial-gradient(circle, #2563eb, transparent 65%); }

/* Hintergrundvideo im Hero */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* leichter gehalten, damit das Video deutlich hervortritt – Text bleibt
     durch das dezente Scrim + Textschatten gut lesbar */
  background:
    linear-gradient(180deg, rgba(7,11,20,0.6) 0%, rgba(7,11,20,0.36) 45%, rgba(7,11,20,0.58) 100%),
    radial-gradient(120% 85% at 50% 44%, rgba(7,11,20,0.14), rgba(7,11,20,0.48) 100%);
}
.hero-has-video .hero-copy {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.hero-has-video .lead { color: #d6deec; }
.hero-has-video .hero-glow { opacity: 0.22; z-index: 1; }
.hero-has-video .hero-inner,
.hero-has-video .ticker { position: relative; z-index: 2; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2rem, 5vh, 4rem);
  flex: 1;
}
/* Zentrierte Variante für den Video-Hero */
.hero-inner-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
  flex: 1;
}
.hero-inner-centered .hero-copy { max-width: 820px; margin-inline: auto; }
.hero-inner-centered .lead { margin-inline: auto; }
.hero-inner-centered .hero-actions { justify-content: center; }
.hero-inner-centered .hero-facts { max-width: 720px; margin-inline: auto; margin-top: 2.4rem; }
.hero-inner-centered .hero-facts li { align-items: center; text-align: center; }

.hero .lead { font-size: 1.05rem; max-width: 54ch; }

/* Kleiner Pause/Play-Button unten rechts im Hero */
.hero-video-toggle {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(4.5rem, 9vh, 6rem);
  z-index: 3;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(7,11,20,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.hero-video-toggle:hover { background: rgba(7,11,20,0.8); transform: scale(1.06); }
.hero-video-toggle svg { width: 20px; height: 20px; }
.hero-video-toggle .video-ico-pause { display: block; }
.hero-video-toggle .video-ico-play { display: none; }
.hero-video-toggle.is-paused .video-ico-pause { display: none; }
.hero-video-toggle.is-paused .video-ico-play { display: block; margin-left: 2px; }

.type-line {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  min-height: 1.6em;
}
.type-line .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.hero-facts li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-facts strong { font-size: 1rem; }
.hero-facts span { color: var(--muted); font-size: 0.83rem; }

/* Hero-Mockups */
.hero-visual { position: relative; }
.mock-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.mock-dashboard { padding: 1.1rem 1.2rem 1.3rem; transition: transform 0.15s ease-out; will-change: transform; }
.mock-head { display: flex; align-items: center; gap: 6px; margin-bottom: 1rem; }
.mock-head .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock-title { margin-left: 0.5rem; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.mock-kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  display: flex; flex-direction: column;
}
.mock-kpi span { font-size: 0.72rem; color: var(--muted); }
.mock-kpi strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.mock-chart { width: 100%; height: 120px; }
.mock-chart .bar { transform-origin: bottom; }
.js .mock-chart .bar { animation: barGrow 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.mock-chart .bar:nth-child(2) { animation-delay: 0.08s; }
.mock-chart .bar:nth-child(3) { animation-delay: 0.16s; }
.mock-chart .bar:nth-child(4) { animation-delay: 0.24s; }
.mock-chart .bar:nth-child(5) { animation-delay: 0.32s; }
.mock-chart .bar:nth-child(6) { animation-delay: 0.4s; }
.mock-chart .bar:nth-child(7) { animation-delay: 0.48s; }
.mock-chart .bar:nth-child(8) { animation-delay: 0.56s; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.mock-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  animation: floaty 6s ease-in-out infinite;
}
.mock-float strong { display: block; font-size: 0.85rem; }
.mock-float span:not(.mock-ico):not(.mock-status) { color: var(--muted); }
.mock-float div span { display: block; }
.mock-ico { font-size: 1.2rem; }
.mock-rpa { bottom: -28px; left: -18px; animation-delay: 0.8s; }
.mock-ki { top: -26px; right: -10px; }
.mock-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.mock-status.ok { background: rgba(34, 211, 238, 0.14); color: #67e8f9; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Technologie-Ticker ---------- */
.ticker {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 0.85rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  white-space: nowrap;
  animation: tickerScroll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.section-head-center { max-width: 640px; margin-inline: auto; text-align: center; }

/* Helle Sektionen: Token-Overrides, Komponenten stylen sich darüber */
.theme-light {
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(13, 23, 40, 0.1);
  --text: #101828;
  --muted: #4e5d75;
  background: #f4f6fb;
  color: var(--text);
}
.theme-light.section-white { background: #ffffff; }
.theme-light .eyebrow { color: #0b7285; }
.theme-light .card {
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
.theme-light .card:hover { box-shadow: 0 14px 34px rgba(16, 24, 40, 0.1); }
.theme-light .agile-item {
  background: #ffffff;
  border-color: rgba(13, 23, 40, 0.16);
}
.theme-light .pillars li { box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06); background: #ffffff; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split p + p { margin-top: 0.9rem; }

/* DigiPS Ökosystem (Über uns) – als Bild */
.eco-figure {
  margin: clamp(1.6rem, 4vh, 2.6rem) auto 0;
  max-width: 940px;
  text-align: center;
}
.eco-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.pillars { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.pillars-row {
  flex-direction: row;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.pillars-row li { flex: 1; }
.pillars li {
  display: flex;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pillar-num { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.pillars h3 { margin-bottom: 0.25rem; }
.pillars p { font-size: 0.93rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.1rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; }

/* Gradient-Rahmen beim Hover */
.card-glow { position: relative; }
.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-btn);
  color: #fff;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card-example {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
  font-size: 0.83rem !important;
  color: var(--muted);
  font-style: italic;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ---------- Zielgruppen ---------- */
.audience-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid;
  border-image: var(--grad) 1;
  padding-left: 0.9rem;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.audience-card h3 { font-size: 1.05rem; }


/* ---------- Paradigmenwechsel (Status Quo vs. Digital Power) ---------- */
.shift-section { position: relative; overflow: hidden; }
.shift-glow {
  width: 620px; height: 620px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 68%);
  opacity: 0.6;
}
.shift-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.4rem;
  align-items: stretch;
}
.shift-card {
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--border);
}
.shift-before {
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
}
.shift-before .shift-list li { color: #8a97ab; }
.shift-after {
  position: relative;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.22);
}
.shift-card-head { margin-bottom: 1.2rem; }
.shift-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.shift-tag-before {
  color: #9aa7ba;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.shift-tag-after {
  color: #fff;
  background: var(--grad-btn);
}
.shift-card-head h3 { font-size: 1.2rem; }
.shift-after .shift-card-head h3 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shift-list { list-style: none; display: grid; gap: 0.7rem; }
.shift-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.5;
}
.shift-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 1px;
}
.shift-x { background: rgba(255, 255, 255, 0.07); color: #8a97ab; }
.shift-check { background: rgba(34, 211, 238, 0.16); color: #67e8f9; }
.shift-arrow {
  display: grid;
  place-items: center;
  color: var(--purple);
}
.shift-arrow svg { width: 44px; height: 44px; }
.shift-note {
  max-width: 760px;
  margin: 1.8rem auto 0;
  text-align: center;
  font-size: 0.96rem;
}
.shift-note strong { color: var(--text); }
.shift-note a {
  color: #6d28d9;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(109, 40, 217, 0.35);
  transition: border-color 0.15s ease;
}
.shift-note a:hover { border-color: #6d28d9; }

/* ---------- Referenzen ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.stat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}
.stat strong {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat > span { font-size: 0.88rem; color: var(--muted); }

.case-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              background 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
}
.case-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.13);
  border-color: rgba(124, 58, 237, 0.35);
}
.case-card .badge {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-card:hover .badge {
  transform: scale(1.05);
}
.case-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.case-block { font-size: 0.88rem; margin-bottom: 0.6rem; }
.case-block strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b7285;
  margin-bottom: 0.1rem;
}
.case-result {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 0.9rem !important;
  font-weight: 600;
  color: var(--text) !important;
}

/* Weitere Projekte – ganze Reihe auf-/zuklappbar */
.cases-more { margin-top: 2rem; }
.cases-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto;
  width: fit-content;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.06);
  color: #6d28d9;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.cases-more { display: flex; flex-direction: column; align-items: center; }
.cases-toggle:hover { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.55); }
.cases-toggle::-webkit-details-marker { display: none; }
.cases-toggle-label::before { content: attr(data-more); }
.cases-more[open] .cases-toggle-label::before { content: attr(data-less); }
.cases-toggle-ico { width: 18px; height: 18px; transition: transform 0.25s ease; }
.cases-more[open] .cases-toggle-ico { transform: rotate(180deg); }
.cases-extra {
  width: 100%;
  margin-top: 1.6rem;
  align-items: start;
}
.js .cases-more[open] .cases-extra { animation: fadeSwap 0.35s ease; }
@keyframes fadeSwap {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: #0b7285;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > p {
  padding: 0 1.3rem 1.15rem;
  font-size: 0.93rem;
}

/* ---------- Angebots-Panel (Kontakt) ---------- */
.offer-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 2.2rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(214, 58, 142, 0.12), rgba(124, 58, 237, 0.1) 50%, rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.35);
  margin-bottom: 2.4rem;
}
.offer-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.8rem;
}
.offer-copy h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.offer-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0;
}
.offer-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--cyan);
}
.offer-note { font-size: 0.85rem; font-style: italic; }
.offer-cta {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}
.offer-alt { font-size: 0.85rem; color: var(--muted); }
.offer-alt a { color: var(--text); font-weight: 700; text-decoration: none; }

.steps-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.9rem;
}

/* ---------- Philosophie ---------- */
.manifesto {
  margin: 0 auto clamp(2rem, 5vh, 3rem);
  max-width: 820px;
}
.manifesto p {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
.values .value-card { padding: 1.8rem; }
.value-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

/* ---------- So arbeiten wir ---------- */
.agile-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}
.agile-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  font-size: 0.9rem;
}
.agile-item strong { display: block; margin-bottom: 0.3rem; }
.agile-item span { color: var(--muted); }

.phases { display: grid; gap: 1.6rem; }
.phases-title {
  font-size: 0.95rem;
  color: var(--muted);
}
.phases-title strong { color: var(--text); }

/* Vorgehensweise als vertikale Journey: Gradient-Linie füllt sich beim
   Scrollen, Phasen-Knoten leuchten auf, Karten wechseln die Seite */
.journey-track { position: relative; margin-top: 1.6rem; }
.journey-line {
  position: absolute;
  top: 0.5rem; bottom: 0.5rem;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: rgba(13, 23, 40, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.journey-line span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #e8a33d, #e04ba5, #a855f7, #3b82f6, #22d3ee, #34d399);
  border-radius: inherit;
  transition: height 0.25s linear;
}
.journey-steps {
  list-style: none;
  display: grid;
  gap: 2rem;
}
.journey-step {
  position: relative;
  width: calc(50% - 3.2rem);
}
.journey-step:nth-child(even) { margin-left: auto; }
.journey-node {
  position: absolute;
  top: 2.1rem;
  left: calc(100% + 3.2rem);
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #f4f6fb;
  border: 3px solid rgba(13, 23, 40, 0.16);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 1;
}
.journey-step:nth-child(even) .journey-node {
  left: auto;
  right: calc(100% + 3.2rem);
  transform: translateX(50%);
}
.journey-step.lit .journey-node {
  background: var(--c);
  border-color: #ffffff;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--c) 28%, transparent),
    0 0 18px color-mix(in srgb, var(--c) 60%, transparent);
}
.journey-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.journey-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(16, 24, 40, 0.11); }
.journey-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.journey-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c);
}
.journey-ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 13%, #ffffff);
  color: var(--c);
}
.journey-ico svg { width: 24px; height: 24px; }
.journey-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.journey-card h3 em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 0.85em; }
.journey-card p { font-size: 0.92rem; }

/* Karten schieben sich abwechselnd von links/rechts ins Bild */
.js .journey-step:nth-child(odd) .reveal { transform: translateX(-28px); }
.js .journey-step:nth-child(even) .reveal { transform: translateX(28px); }
.js .journey-step .reveal.visible { transform: none; }

/* Go-live-Meilenstein nach Schritt 5 */
.journey-golive {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 2.2rem 0;
}
.golive-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.6rem;
  border-radius: 16px;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.4);
}
.golive-ico { font-size: 1.7rem; line-height: 1; }
.golive-text { display: flex; flex-direction: column; text-align: left; }
.golive-text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.golive-text span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.88); }
.js .journey-golive.visible .golive-banner { animation: golivePulse 2.4s ease-in-out 0.3s 2; }
@keyframes golivePulse {
  0%, 100% { box-shadow: 0 14px 40px rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 14px 52px rgba(124, 58, 237, 0.7); }
}

/* Schritt 6 – nachhaltiger Dauerbetrieb (nach Go-live) */
.journey-ongoing {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.ongoing-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  text-align: center;
}
.ongoing-card .journey-head { justify-content: center; gap: 1rem; }
.ongoing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.ongoing-badge svg { width: 14px; height: 14px; }
.js .journey-ongoing.visible .ongoing-badge svg { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ongoing-card h3 { justify-content: center; }
.ongoing-card p { font-size: 0.92rem; }

/* ---------- Technologie (Microsoft-First-Stack) ---------- */
.tech-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tech-callouts { display: grid; gap: 1rem; }
.tech-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tech-callout:hover { transform: translateX(4px); box-shadow: 0 14px 34px rgba(16, 24, 40, 0.1); }
.tech-callout h3 { font-size: 1.02rem; margin-bottom: 0.25rem; color: #4338ca; }
.tech-callout p { font-size: 0.9rem; }
.tech-ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef0fd;
  color: #4f46e5;
}
.tech-ico svg { width: 24px; height: 24px; }
.tech-callout-ki { border-left: 3px solid #7c3aed; }
.tech-ico-ki { background: #f3ecfe; color: #7c3aed; }

.tech-figure { display: grid; justify-items: center; }
.tech-figure img {
  width: min(380px, 90%);
  height: auto;
  animation: floaty 8s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(49, 46, 129, 0.18));
}

/* ---------- Team (Kontaktkarten nach Vorlage) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 500px));
  gap: 1.4rem;
  justify-content: center;
}
.tcard {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(16, 24, 40, 0.11); }
.tcard-photo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 3px dashed #14b8a6;
  padding: 5px;
}
.tcard-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}
.tcard-bars {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tcard-bars i { display: block; border-radius: 2px; }
.tcard-bars .tbar-pink { width: 4px; height: 55%; background: #d63a9b; }
.tcard-bars .tbar-blue { width: 4px; height: 85%; background: #2563eb; }
.tcard-body h3 { font-size: 1.35rem; color: var(--text); }
.tcard-role { font-size: 0.9rem; color: var(--muted); margin: 0.15rem 0 0.9rem; }
.tcard-list { list-style: none; display: grid; gap: 0.55rem; font-size: 0.93rem; }
.tcard-list li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--muted); }
.tcard-list a { color: var(--muted); text-decoration: none; }
.tcard-list a:hover { color: var(--text); }
.tcard-ico {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #10617a;
  color: #fff;
  margin-top: -1px;
}
.tcard-ico svg { width: 13px; height: 13px; }

.contact-list { list-style: none; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.contact-list a { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--text); }

/* ---------- Kontakt ---------- */
.mini-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.6rem;
}
.mini-steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.mini-steps strong { display: block; color: var(--text); margin-bottom: 0.35rem; font-size: 0.98rem; }

.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.4rem; }
.contact-info h3, .contact-form h3 { margin-bottom: 0.6rem; }
.contact-info p { font-size: 0.95rem; margin-bottom: 1.2rem; }
.contact-info .contact-list { gap: 0.7rem; }
.contact-info .contact-list strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); }

.map-wrapper {
  margin-top: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 11px;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top-right-radius: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  text-decoration: none;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease;
}
.map-link:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.25);
}

.contact-form { display: grid; gap: 0.9rem; }
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.93rem;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--purple); }
.contact-form textarea { resize: vertical; }
.form-hint { font-size: 0.78rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(168, 85, 247, 0.08) 0%, rgba(34, 211, 238, 0.03) 45%, transparent 75%),
    linear-gradient(180deg, #090e1a 0%, #050810 100%);
  padding-top: 3.5rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 2.5rem));
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  opacity: 0.85;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 0.8rem; }
.footer-nav a, .footer-nav span {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.footer-nav a:hover { color: var(--text); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-legal a { color: var(--muted); text-decoration: none; margin-left: 1.2rem; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Scroll-Reveal (nur mit aktivem JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Gestaffelte Reveals innerhalb von Rastern */
.js .stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mock-float, .ticker-track, .grad-animate, .type-line .caret,
  .js .mock-chart .bar, .tech-figure img { animation: none !important; }
  .btn, .card { transition: none; }
  .mock-dashboard { transition: none; }
  .journey-line span { transition: none; }
  .js .journey-step:nth-child(odd) .reveal,
  .js .journey-step:nth-child(even) .reveal { transform: none; }
  .js .journey-golive.visible .golive-banner,
  .js .journey-ongoing.visible .ongoing-badge svg { animation: none !important; }
  .js .cases-more[open] .cases-extra { animation: none !important; }
  .cases-toggle-ico { transition: none; }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.25);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols-3, .cases-mini { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: minmax(0, 560px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-top: 2.5rem; }
  .mock-rpa { bottom: -20px; left: 0; }
  .mock-ki { top: -18px; right: 0; }
  .journey-line { left: 10px; transform: none; }
  .journey-step,
  .journey-step:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 2.6rem;
  }
  .journey-node,
  .journey-step:nth-child(even) .journey-node {
    left: 10px;
    right: auto;
    transform: translateX(-50%);
  }
  .journey-golive, .journey-ongoing {
    justify-content: flex-start;
    padding-left: 2.6rem;
  }
  .ongoing-card { max-width: none; }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a101d;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1.25rem 1.2rem;
    display: flex;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                visibility 0.3s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav a:not(.btn) { padding: 0.8rem 0.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1rem; }
  .nav-toggle { display: flex; }

  .split, .contact-wrap, .footer-inner, .cols-2, .agile-strip,
  .tech-layout, .stats-row, .offer-panel { grid-template-columns: 1fr; }
  .offer-cta { justify-items: start; text-align: left; }
  .tech-figure { order: -1; }
  .pillars-row { flex-direction: column; }
  .shift-grid { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); padding: 0.3rem 0; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .mini-steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cols-3, .cases-mini { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .tcard { flex-direction: column; text-align: center; }
  .tcard-bars { display: none; }
  .tcard-list li { justify-content: center; text-align: left; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 40px);
  width: min(680px, calc(100% - 2rem));
  z-index: 9999;
  background: rgba(10, 16, 29, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              visibility 0.4s ease;
  padding: 1.5rem;
}
.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.cookie-icon {
  width: 22px;
  height: 22px;
  color: var(--cyan);
  flex-shrink: 0;
}
.cookie-banner-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.cookie-banner-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-details {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
}
.cookie-group {
  margin-bottom: 0.6rem;
}
.cookie-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.cookie-group-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.cookie-group-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
  padding-left: 1.4rem;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .cookie-banner {
    bottom: 1rem;
    padding: 1.2rem;
  }
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
