/* ============================================================
   Nextbotsolution – globale Styles
   ============================================================ */

:root {
  --bg: #1a1a1d;
  --surface: #1f1f23;
  --surface-elevated: #26262b;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #ff6b35;
  --accent-soft: #ffa274;
  --accent-glow: rgba(255, 107, 53, 0.15);
}

* { border-color: var(--border); }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #0a0a0a;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   Reusable Patterns
   ============================================================ */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.text-ember-gradient {
  background: linear-gradient(135deg, #ff8555 0%, #ff6b35 50%, #f04e15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.surface-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.005) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.card-base {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(31, 31, 35, 0.6);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-base::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.card-hover:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-2px);
  background: rgba(31, 31, 35, 0.8);
}

.bg-dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-line-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html:not([data-force-motion="on"]) *,
  html:not([data-force-motion="on"]) *::before,
  html:not([data-force-motion="on"]) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Animations (sicher vor Tailwind-Tree-Shaking)
   ============================================================ */
@keyframes ember-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

@keyframes pill-breathe {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
  50% {
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 0 20px -2px rgba(255, 107, 53, 0.18);
  }
}

@keyframes glow-drift-left {
  0%, 100% { transform: translateX(0);     opacity: 0.7; }
  50%      { transform: translateX(60px);  opacity: 1; }
}
@keyframes glow-drift-right {
  0%, 100% { transform: translateX(0);      opacity: 0.6; }
  50%      { transform: translateX(-60px);  opacity: 1; }
}

@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 20px -8px rgba(255, 107, 53, 0.4); }
  50%      { box-shadow: 0 0 32px -4px rgba(255, 107, 53, 0.6); }
}

/* ============================================================
   Header scrolled state
   ============================================================ */
#site-header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(26, 26, 29, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

/* ============================================================
   Lucide Icons Default-Styling
   ============================================================ */
[data-lucide] {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}


/* ============================================================
   Technologien & Schwerpunkte – feste, nahtlose Laufschrift
   ============================================================ */
.tech-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 20, 23, 0.42) !important;
  padding: 3rem 0;
  isolation: isolate;
}

/* Kein wandernder oranger Hintergrund in diesem Bereich. */
.tech-strip::before,
.tech-strip::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  background: none !important;
}

.tech-strip-heading-wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto 1.5rem;
  padding: 0;
}

.tech-strip-heading {
  margin: 0;
  text-align: center;
  color: #71717a;
  font-size: 0.7rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tech-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

@keyframes tech-marquee-ltr {
  from { transform: translate3d(-25%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.tech-marquee-track {
  display: flex !important;
  align-items: center;
  width: max-content !important;
  min-width: max-content;
  transform: translate3d(-25%, 0, 0);
  animation: tech-marquee-ltr 28s linear infinite !important;
  will-change: transform;
  backface-visibility: hidden;
}

.tech-marquee-set {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
  width: max-content;
}

.tech-marquee-pill {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.55rem;
  padding: 0.58rem 1.1rem;
  white-space: nowrap;
  border: 1px solid rgba(255, 107, 53, 0.22);
  border-radius: 9999px;
  background: rgba(31, 31, 35, 0.82) !important;
  box-shadow: none !important;
  color: #e4e4e7;
  font-size: 0.84rem;
  line-height: 1;
  font-weight: 500;
  animation: none !important;
}

.tech-marquee-dot {
  position: relative;
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #ff6b35;
  box-shadow: 0 0 0.75rem rgba(255, 107, 53, 0.55);
}

.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused !important;
}

@media (max-width: 640px) {
  .tech-strip { padding: 2.5rem 0; }
  .tech-strip-heading-wrap { margin-bottom: 1.25rem; }
  .tech-marquee-track { animation-duration: 21s !important; }
  .tech-marquee-set { gap: 0.75rem; padding-right: 0.75rem; }
  .tech-marquee-pill { min-height: 2.4rem; padding: 0.52rem 0.95rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-force-motion="on"]) .tech-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  html:not([data-force-motion="on"]) .tech-marquee-track { transform: none !important; animation: none !important; }
  html:not([data-force-motion="on"]) .tech-marquee-set:not(:first-child) { display: none !important; }
}

/* ============================================================
   Varied Motion System – unterschiedliche Animationen je Abschnitt
   ============================================================ */
[class*="motion-title-"],
[class*="motion-fade-"],
[class*="motion-card-"] {
  --motion-delay: 0ms;
  will-change: transform, opacity, filter, clip-path;
}

.motion-title-wipe {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translate3d(-18px,0,0);
  transition: clip-path 1.05s cubic-bezier(.16,1,.3,1) var(--motion-delay), opacity .5s ease var(--motion-delay), transform .95s cubic-bezier(.16,1,.3,1) var(--motion-delay);
}
.motion-title-wipe.is-visible { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }

.motion-title-split {
  opacity: 0;
  clip-path: inset(48% 0 48% 0);
  transform: scale(.96);
  filter: blur(8px);
  transition: clip-path 1s cubic-bezier(.16,1,.3,1) var(--motion-delay), opacity .55s ease var(--motion-delay), transform 1s cubic-bezier(.16,1,.3,1) var(--motion-delay), filter .8s ease var(--motion-delay);
}
.motion-title-split.is-visible { opacity: 1; clip-path: inset(-8% 0 -8% 0); transform: scale(1); filter: blur(0); }

.motion-fade-up { opacity: 0; transform: translate3d(0,26px,0); filter: blur(6px); }
.motion-fade-left { opacity: 0; transform: translate3d(-34px,0,0); filter: blur(5px); }
.motion-fade-right { opacity: 0; transform: translate3d(34px,0,0); filter: blur(5px); }
.motion-fade-up, .motion-fade-left, .motion-fade-right {
  transition: opacity .8s ease var(--motion-delay), transform .95s cubic-bezier(.16,1,.3,1) var(--motion-delay), filter .75s ease var(--motion-delay);
}
.motion-fade-up.is-visible, .motion-fade-left.is-visible, .motion-fade-right.is-visible { opacity: 1; transform: none; filter: blur(0); }

.motion-card-rise { opacity: 0; transform: perspective(1000px) translate3d(0,44px,0) rotateX(5deg) scale(.97); filter: blur(7px); }
.motion-card-swing { opacity: 0; transform: perspective(1000px) translate3d(-30px,22px,0) rotateY(-7deg) rotateZ(-1deg); filter: blur(6px); }
.motion-card-zoom { opacity: 0; transform: scale(.88); filter: blur(10px); }
.motion-card-slide { opacity: 0; transform: translate3d(46px,0,0) scale(.98); filter: blur(5px); }
.motion-card-rise, .motion-card-swing, .motion-card-zoom, .motion-card-slide {
  position: relative;
  transition: opacity .8s ease var(--motion-delay), transform 1.05s cubic-bezier(.16,1,.3,1) var(--motion-delay), filter .8s ease var(--motion-delay), border-color .35s ease, box-shadow .45s ease;
}
.motion-card-rise.is-visible, .motion-card-swing.is-visible, .motion-card-zoom.is-visible, .motion-card-slide.is-visible { opacity: 1; transform: none; filter: blur(0); }

.motion-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  transform-style: preserve-3d;
}
.motion-tilt.is-visible:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0,-4px,0);
  border-color: rgba(255,107,53,.28) !important;
  box-shadow: 0 28px 70px -35px rgba(0,0,0,.78), 0 0 45px -32px rgba(255,107,53,.75);
}
.motion-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(420px circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.095), rgba(255,107,53,.055) 23%, transparent 58%);
  transition: opacity .35s ease;
}
.motion-tilt:hover::after { opacity: 1; }
.motion-tilt > * { position: relative; z-index: 1; }

/* Sanfter Abschnitt-Parallax-Eindruck ohne Scroll-Jank */
main section {
  background-attachment: scroll;
}

/* FAQ-Inhalte öffnen nicht hart, sondern weich */
[data-accordion-content] {
  transform-origin: top;
  transition: opacity .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
[data-accordion-content].accordion-open {
  animation: accordion-reveal .45s cubic-bezier(.16,1,.3,1) both;
}
@keyframes accordion-reveal {
  from { opacity: 0; transform: translateY(-8px) scaleY(.96); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* Buttons erhalten einen präzisen Lichtlauf statt Basic-Hover */
a[class*="bg-ember-500"], button[class*="bg-ember-500"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
a[class*="bg-ember-500"]::before, button[class*="bg-ember-500"]::before {
  content: '';
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 30%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transition: left .7s cubic-bezier(.16,1,.3,1);
  z-index: -1;
}
a[class*="bg-ember-500"]:hover::before, button[class*="bg-ember-500"]:hover::before { left: 120%; }

@media (max-width: 767px) {
  .motion-card-rise, .motion-card-swing, .motion-card-zoom, .motion-card-slide { transform: translate3d(0,24px,0) scale(.985); }
  .motion-tilt.is-visible:hover { transform: translate3d(0,-2px,0); }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-force-motion="on"]) .motion-title-wipe,
  html:not([data-force-motion="on"]) .motion-title-split,
  html:not([data-force-motion="on"]) .motion-fade-up,
  html:not([data-force-motion="on"]) .motion-fade-left,
  html:not([data-force-motion="on"]) .motion-fade-right,
  html:not([data-force-motion="on"]) .motion-card-rise,
  html:not([data-force-motion="on"]) .motion-card-swing,
  html:not([data-force-motion="on"]) .motion-card-zoom,
  html:not([data-force-motion="on"]) .motion-card-slide {
    clip-path: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  html:not([data-force-motion="on"]) .motion-tilt:hover { transform: none !important; }
}

/* ============================================================
   Header Navigation – Interaktionen und Animationen
   ============================================================ */
#site-header { pointer-events: none; }
#site-header > * { pointer-events: auto; }

.brand-link {
  isolation: isolate;
  padding: .55rem .2rem;
  transition: transform .35s cubic-bezier(.16,1,.3,1), filter .35s ease;
}
.brand-link::after {
  content: '';
  position: absolute;
  left: .2rem;
  right: .2rem;
  bottom: .25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,.95), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.brand-link:hover { transform: translateY(-1px); filter: drop-shadow(0 0 12px rgba(255,107,53,.18)); }
.brand-link:hover::after { transform: scaleX(1); }

.header-nav-shell {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 35px rgba(0,0,0,.12);
}
.header-nav-link {
  position: relative;
  display: inline-flex;
  height: 2rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  padding: 0 .875rem;
  color: #a1a1aa;
  font-size: .82rem;
  font-weight: 500;
  transition: color .3s ease, transform .35s cubic-bezier(.16,1,.3,1), background-color .3s ease;
  isolation: isolate;
}
.header-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,107,53,.08));
  opacity: 0;
  transform: scale(.76);
  transition: opacity .3s ease, transform .4s cubic-bezier(.16,1,.3,1);
}
.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: .2rem;
  left: 50%;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: #ff6b35;
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transition: opacity .3s ease, transform .4s cubic-bezier(.16,1,.3,1);
}
.header-nav-link:hover,
.header-nav-link:focus-visible { color: #fafafa; transform: translateY(-1px); }
.header-nav-link:hover::before,
.header-nav-link:focus-visible::before,
.header-nav-link.is-active::before { opacity: 1; transform: scale(1); }
.header-nav-link.is-active { color: #fafafa; }
.header-nav-link.is-active::after { opacity: 1; transform: translateX(-50%) scaleX(1); }

.header-cta {
  position: relative;
  height: 2.25rem;
  align-items: center;
  gap: .4rem;
  overflow: hidden;
  border-radius: 999px;
  background: #ff6b35;
  padding: 0 1rem;
  color: #111113;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(255,107,53,0);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, background-color .3s ease;
}
.header-cta::before {
  content: '';
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 38%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transition: left .65s cubic-bezier(.16,1,.3,1);
}
.header-cta > * { position: relative; z-index: 1; }
.header-cta svg { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.header-cta:hover { transform: translateY(-2px) scale(1.02); background: #ff8257; box-shadow: 0 12px 30px -12px rgba(255,107,53,.75); }
.header-cta:hover::before { left: 115%; }
.header-cta:hover svg { transform: translate(2px,-2px); }
.header-cta:active { transform: translateY(0) scale(.98); }

.mobile-menu-toggle {
  position: relative;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(31,31,35,.72);
  color: #e4e4e7;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease, background-color .3s ease, color .3s ease;
}
.mobile-menu-toggle:hover { transform: rotate(5deg) scale(1.05); border-color: rgba(255,107,53,.4); color: #ff8a60; }
.mobile-menu-toggle[aria-expanded='true'] { background: rgba(255,107,53,.12); border-color: rgba(255,107,53,.4); color: #ff8a60; }

.mobile-menu-panel {
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(26,26,29,.96);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform-origin: top;
}
.mobile-menu-panel.is-opening { animation: header-menu-in .38s cubic-bezier(.16,1,.3,1) both; }
.mobile-nav-link,
.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: .8rem;
  padding: .8rem .85rem;
  color: #a1a1aa;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .3s cubic-bezier(.16,1,.3,1), color .25s ease, background-color .25s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.is-active { transform: translateX(4px); color: #fafafa; background: rgba(255,255,255,.055); }
.mobile-nav-link svg { opacity: .65; transition: transform .3s ease, opacity .3s ease; }
.mobile-nav-link:hover svg { opacity: 1; transform: translate(2px,-2px); }
.mobile-nav-cta { justify-content: center; gap: .5rem; background: #ff6b35; color: #111113; }
.mobile-nav-cta:active { transform: scale(.98); }

@keyframes header-menu-in {
  from { opacity: 0; transform: translateY(-10px) scaleY(.94); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

/* ============================================================
   Hero bar chart animation – bars rise from 0 to target height
   ============================================================ */
@keyframes bar-rise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.hero-bar {
  transform-origin: bottom;
  animation: bar-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Progress bar fill animation */
@keyframes progress-fill {
  from { width: 0; }
  to   { width: var(--progress, 100%); }
}

.hero-progress {
  animation: progress-fill 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 600ms;
}


/* Full-width layout on large desktop (≥1280px) */
@media (min-width: 1280px) {
  .max-w-6xl,
  main .max-w-6xl,
  header .max-w-6xl,
  #site-header .max-w-6xl {
    max-width: none;
  }
}

@media (min-width: 1600px) {
  .max-w-6xl,
  main .max-w-6xl,
  header .max-w-6xl,
  #site-header .max-w-6xl {
    max-width: 1600px;
  }
}
