/* =============================================
   CSS VARIABLES & RESET
============================================= */
:root {
  --orange:      #FF8700;
  --orange-dim:  rgba(255,135,0,0.12);
  --orange-glow: rgba(255,135,0,0.35);
  --dark:        #07070f;
  --dark-2:      #0e0e1c;
  --dark-3:      #161626;
  --light:       #f0f0f8;
  --muted:       #A2A2AD;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1;
}

.text-orange { color: var(--orange) !important; }
.text-muted-custom { color: var(--muted) !important; }

/* =============================================
   NAVBAR
============================================= */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  padding: 1.6rem 0;
  overflow: visible;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1),
  padding    0.4s cubic-bezier(0.4,0,0.2,1),
  border-color 0.4s cubic-bezier(0.4,0,0.2,1);
}

#mainNav.scrolled,
#mainNav.menu-open {
  background: rgba(7,7,15,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,135,0,0.12);
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  cursor: pointer;
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--light);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.navbar-brand-text span { color: var(--orange); }

.nav-link {
  color: rgba(240,240,248,0.65) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem !important;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--orange) !important; }

.nav-cta {
  background: var(--orange) !important;
  color: #000 !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  padding: 0.55rem 1.6rem !important;
  font-weight: 700 !important;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover {
  background: #fff !important;
  transform: translateY(-1px);
}

/* =============================================
   HERO
============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-radial {
  position: absolute;
  inset: 0;
  background:
          radial-gradient(ellipse 80% 55% at 50% 105%, rgba(255,135,0,0.11) 0%, transparent 60%),
          radial-gradient(ellipse 45% 45% at 85% 15%, rgba(255,135,0,0.05) 0%, transparent 55%);
  pointer-events: none;
}

/* Diagonal speed-lines */
.hero-speedlines {
  position: absolute;
  top: 0; right: -10%;
  width: 65%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.055;
}
.hero-speedlines::after {
  content: '';
  position: absolute;
  top: 50%; left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 100%);
  transform-origin: left center;
  transform: rotate(-14deg) translateY(-50%);
  box-shadow:
          0  50px 0 0.8px rgba(255,135,0,0.6),
          0 100px 0 0.5px rgba(255,135,0,0.4),
          0 150px 0 0.4px rgba(255,135,0,0.25),
          0 200px 0 0.3px rgba(255,135,0,0.15),
          0 -50px 0 0.8px rgba(255,135,0,0.6),
          0 -100px 0 0.5px rgba(255,135,0,0.4),
          0 -150px 0 0.4px rgba(255,135,0,0.25),
          0 -200px 0 0.3px rgba(255,135,0,0.15);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,135,0,0.09);
  border: 1px solid rgba(255,135,0,0.28);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.15s;
  opacity: 0;
}

.hero-title-wrap {
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.35s;
  opacity: 0;
}

.display-mega {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 14vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.display-mega-orange {
  color: var(--orange);
  text-shadow: 0 0 100px rgba(255,135,0,0.28);
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  margin-top: 2rem;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.55s;
  opacity: 0;
}
.hero-tagline strong { color: var(--light); font-weight: 500; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.75s;
  opacity: 0;
}

/* =============================================
   BUTTONS
============================================= */
.btn-turbo {
  display: inline-block;
  background: var(--orange);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.6rem;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  border: none;
  transition: all 0.3s ease;
}
.btn-turbo:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.btn-turbo-outline {
  display: inline-block;
  background: transparent;
  color: var(--light);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.6rem;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  border: 1px solid rgba(255,135,0,0.45);
  transition: all 0.3s ease;
}
.btn-turbo-outline:hover {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

/* =============================================
   MARQUEE
============================================= */
.marquee-band {
  overflow: hidden;
  background: var(--orange);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #000;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  flex-shrink: 0;
}
.marquee-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  background: var(--dark-2);
  border-top:    1px solid rgba(255,135,0,0.09);
  border-bottom: 1px solid rgba(255,135,0,0.09);
  padding: 3rem 0;
}
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 2.5rem;
  width: 1px;
  background: rgba(255,135,0,0.18);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

/* =============================================
   SECTION UTILITIES
============================================= */
.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-title-lg {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1;
}
.accent-bar {
  width: 50px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 2rem;
}
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,135,0,0.25) 40%, rgba(255,135,0,0.25) 60%, transparent 100%);
  margin: 0;
}

/* =============================================
   ABOUT
============================================= */
#about { padding: 9rem 0; }

.about-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(240,240,248,0.72);
}
.about-text strong { color: var(--light); font-weight: 500; }
.about-text + .about-text { margin-top: 1.25rem; }

.about-side-accent {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: 1;
  color: rgba(255,135,0,0.04);
  user-select: none;
  pointer-events: none;
}

/* =============================================
   SERVICES
============================================= */
#services {
  padding: 9rem 0;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
#services::before {
  content: 'TYPO3';
  position: absolute;
  font-family: var(--font-display);
  font-size: 22vw;
  color: rgba(255,135,0,0.025);
  right: -4%;
  bottom: -4%;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.service-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem;
  height: 100%;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover {
  border-color: rgba(255,135,0,0.22);
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.45);
}
.service-card:hover::after { width: 100%; }

.service-icon {
  font-size: 2.4rem;
  color: var(--orange);
  display: block;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.08); }

.service-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.9rem;
}
.service-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* =============================================
   TEAM
============================================= */
#team { padding: 9rem 0; }

.team-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.team-card:hover {
  border-color: rgba(255,135,0,0.3);
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.team-card:hover::before { transform: scaleX(1); }

.team-card-inner { padding: 2.2rem; }

.team-avatar {
  width: 80px;
  height: 100px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #000;
  margin-bottom: 1.5rem;
  clip-path: polygon(12% 0%, 88% 0%, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0% 88%, 0% 12%);
  transition: transform 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card:hover .team-avatar { transform: rotate(5deg) scale(1.05); }

.team-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  margin-bottom: 0.35rem;
}
.team-co {
  color: var(--orange);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.team-desc {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,135,0,0.22);
  background: rgba(255,135,0,0.06);
  padding: 0.22rem 0.6rem;
}
.team-link {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.3s;
}
.team-link:hover { color: var(--orange); }

/* =============================================
   WHY US
============================================= */
#why {
  padding: 9rem 0;
  background: var(--dark-2);
}

.why-item {
  display: flex;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s;
}
.why-item:first-child { padding-top: 0; }
.why-item:hover { border-color: rgba(255,135,0,0.18); }

.why-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(255,135,0,0.12);
  line-height: 1;
  min-width: 65px;
  transition: color 0.4s;
}
.why-item:hover .why-num { color: var(--orange); }

.why-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}
.why-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* =============================================
   CTA SECTION
============================================= */
#cta {
  padding: 10rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(255,135,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}
.cta-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 3rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,135,0,0.07);
  border: 1px solid rgba(255,135,0,0.2);
  color: var(--light);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.contact-pill i { color: var(--orange); font-size: 1.1rem; }
.contact-pill:hover {
  background: rgba(255,135,0,0.14);
  border-color: var(--orange);
  color: var(--orange);
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,135,0,0.1);
  padding: 5rem 0 2.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--light);
  letter-spacing: 0.04em;
}
.footer-brand span { color: var(--orange); }
.footer-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.4rem;
}
.footer-nav {
  list-style: none;
  padding: 0;
}
.footer-nav li { margin-bottom: 0.55rem; }
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--orange); }
.footer-impressum { color: var(--muted); }
.footer-impressum:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,135,0,0.5); }
  50%       { box-shadow: 0 0 0 7px rgba(255,135,0,0); }
}

.glow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--orange); }

/* Utility classes (replacing inline styles) */
.icon-light { color: var(--light); }
.hero-h1 {
  font-family: var(--font-display);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.hero-line { }
.hero-line-light { color: var(--light); }
.text-muted-sm {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* =============================================
   REFERENCE LOGOS IN TEAM CARDS
============================================= */
.ref-logos {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ref-logos-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.ref-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.ref-thumb {
  height: 35px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  border-radius: 2px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.35s, filter 0.35s;
  cursor: default;
}
.ref-thumb.ref-thumb-white {
  padding: 3px;
  background-color: #ffffff;
}
.ref-thumb:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.ref-logo-img {
  height: 28px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  opacity: 0.45;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.ref-logo-img:hover { opacity: 1; }

/* =============================================
   NETWORK SECTION
============================================= */
#network {
  padding: 7rem 0;
}
.network-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1.75rem 1.5rem;
  height: 100%;
  position: relative;
  transition: border-color 0.35s, transform 0.35s;
}
.network-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--orange);
  transition: width 0.4s ease;
}
.network-card:hover {
  border-color: rgba(255,135,0,0.2);
  transform: translateY(-3px);
}
.network-card:hover::after { width: 100%; }
.network-logo-wrap {
  height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.network-logo-img {
  max-height: 100%;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.45;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.network-card:hover .network-logo-img { opacity: 0.85; }
.network-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--light);
  margin-bottom: 0.25rem;
}
.network-role {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.network-location {
  font-size: 0.68rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.network-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.3s;
}
.network-link:hover { color: var(--orange); }

/* =============================================
   SCROLL REVEAL (AOS-Ersatz, reflow-frei)
============================================= */
[data-aos] {
  opacity: 0;
  transition: opacity 0.85s ease-out, transform 0.85s ease-out;
  will-change: opacity, transform;
}
[data-aos="fade-up"]    { transform: translateY(28px); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1; transform: none; transition: none; }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 991px) {
  .hero-speedlines { display: none; }
  .about-side-accent { display: none; }
  #services::before { font-size: 35vw; }
  .stat-item + .stat-item::before { display: none; }
}
@media (max-width: 575px) {
  .display-mega { font-size: clamp(4rem, 22vw, 6rem); }
  .cta-title    { font-size: clamp(3rem, 16vw, 5rem); }
  .container { overflow:hidden; }
}
