/* --- FONTS & VARIABLES --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Space+Grotesk:wght@700&display=swap");

:root {
  --color-primary: #ff6b00;
  --color-primary-glow: rgba(255, 107, 0, 0.5);
  --color-bg-deep: #030305;
  --color-bg-surface: #0f0f11;
  --color-bg-lighter: #16161a;
  --color-text-main: #ffffff;
  --color-text-muted: #9494a8;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1400px;
  --header-height: 80px;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tech Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    var(--color-bg-deep) 90%
  );
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- TYPOGRAPHY & UTILS --- */
.text-gradient {
  background: linear-gradient(135deg, #fff 30%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-orange {
  color: var(--color-primary);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: white;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.text-center {
  text-align: center;
}

.tagline {
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
  border: 1px solid var(--color-primary-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(255, 107, 0, 0.05);
}

/* --- BUTTONS (Fixed White Text) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.3s var(--easing);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff !important; /* Force White */
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(255, 107, 0, 0.5);
  color: #ffffff !important;
}
.btn-glass {
  /* ALT: backdrop-filter: blur(10px); */
  /* NEU: Entfernen */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: white;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  /* ALT: background: rgba(3, 3, 5, 0.85); backdrop-filter: blur(16px); */
  /* NEU (Schnell): Nur Farbe, kein Filter */
  background: rgba(3, 3, 5, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  height: 70px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}
.logo span {
  color: var(--color-primary);
}

.nav-desktop {
  display: none;
  gap: 2rem;
  align-items: center;
}
.nav-desktop a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.nav-desktop a:hover {
  color: white;
}
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.25;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--color-bg-deep) 0%,
    transparent 40%,
    var(--color-bg-deep) 100%
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-title .outline {
  -webkit-text-stroke: 1px rgb(233, 233, 233);
  color: transparent;
  display: block;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* --- TRUST LOGO BAR (Neu) --- */
.trust-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.trust-title {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.logo-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}
.logo-track {
  display: flex;
  gap: 4rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.partner-logo {
  height: 30px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: 0.3s;
}
.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

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

/* --- BENTO GRID --- */
.section {
  padding: 6rem 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
  }
  .span-2 {
    grid-column: span 2;
  }
  .row-2 {
    grid-row: span 2;
  }
}

.bento-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: 0.4s var(--easing);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px; /* Mobile Safe Height */
}
.bento-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
}
.bento-bg-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.03;
  color: white;
  transition: 0.5s;
}
.bento-item:hover .bento-bg-icon {
  transform: scale(1.2) rotate(10deg);
  opacity: 0.08;
}
.bento-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: white;
}
.bento-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- STATS SECTION (Neu) --- */
.stats-section {
  background: var(--color-bg-lighter);
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.stat-label {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* --- PROCESS (Truck) --- */
.process-section {
  padding: 6rem 0;
  overflow: hidden;
}
.process-road {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 3rem 0;
  width: 100%;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-item {
  text-align: center;
}
.step-dot {
  width: 16px;
  height: 16px;
  background: var(--color-bg-deep);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  box-shadow: 0 0 10px var(--color-primary);
}

/* --- FEATURES DEEP DIVE (Neu) --- */
.feature-card {
  background: var(--color-bg-surface);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  transition: 0.3s;
}
.feature-card:hover {
  background: var(--color-bg-lighter);
  border-color: rgba(255, 255, 255, 0.2);
}
.f-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- 3D DASHBOARD --- */
.dashboard-section {
  padding: 5rem 0 8rem 0;
  perspective: 1200px;
  overflow: hidden;
}
.dashboard-container {
  position: relative;
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  transform: rotateX(15deg) scale(0.95);
  transform-style: preserve-3d;
  transition: 0.8s;
}
@media (max-width: 768px) {
  .dashboard-container {
    transform: none;
  }
} /* Disable 3D on mobile */
.dashboard-container:hover {
  transform: rotateX(5deg) scale(1);
}
.dashboard-img {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 107, 0, 0.3);
}

/* --- FAQ SECTION (Neu) --- */
.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
details {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: 0.3s;
}
details[open] {
  border-color: var(--color-primary);
}
summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: 0.3s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* --- FINAL CTA (Neu) --- */
.cta-section {
  padding: 6rem 0;
}

.cta-box {
  background: linear-gradient(180deg, #1a1a20 0%, #0f0f11 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  
  /* Container Padding */
  padding: 4rem 2rem;
  
  position: relative;
  overflow: hidden;

  /* --- FIX: FLEXBOX ZENTRIERUNG --- */
  display: flex !important;
  flex-direction: column;
  align-items: center; /* Zentriert horizontal */
  justify-content: center;
  text-align: center;
}

/* Sicherheitshalber: Button-Breite resetten */
.cta-box .btn {
  width: auto; 
  margin: 0; /* Entfernt jegliche Außenabstände, die schieben könnten */
  max-width: 100%;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  box-shadow: 0 0 30px var(--color-primary);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  background: black;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-link {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
  transition: 0.2s;
  font-size: 0.9rem;
}
.footer-link:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s var(--easing);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  .hero {
    padding-top: 100px;
  }
  .stats-grid {
    gap: 1.5rem;
  }
}

/* --- DYNAMIC BANNER SYSTEM --- */

/* Option A: Partner Section (Styles bleiben wie gehabt, hier zur Sicherheit) */
.trust-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.trust-title {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.logo-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}
.logo-track {
  display: flex;
  gap: 4rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.partner-logo {
  height: 30px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: 0.3s;
}
.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}
/* --- ORANGE MARQUEE (EXTREME TILT) --- */
.marquee-wrapper {
  background: var(--color-primary);
  padding: 1.2rem 0;

  /* WICHTIG: Breite & Rotation */
  width: 120vw; /* 120% der Bildschirmbreite, damit die Ecken gedeckt sind */
  margin-left: -10vw; /* Zieht das überbreite Element wieder in die Mitte */
  transform: rotate(-2deg) scale(0.9); /* Hier den Winkel einstellen (z.B. -6deg oder -15deg) */
  transform-origin: center;

  /* ABSTÄNDE: Durch die Drehung brauchen wir mehr Platz oben/unten */
  margin-top: 3rem;
  margin-bottom: 3rem;

  /* STYLE */
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow: 0 10px 60px rgba(255, 107, 0, 0.5); /* Stärkerer Schatten für 3D-Effekt */

  position: relative;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1.8rem; /* Etwas größer für mehr Impact */
  font-weight: 800;
  color: #000;
  margin: 0 2rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  letter-spacing: -0.02em;
}

.marquee-item i {
  font-size: 0.8em;
  opacity: 0.8;
}

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

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

/* --- PREMIUM PORTFOLIO SECTION (Apple Style) --- */

/* Grid Setup */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Responsive Grid */
@media (min-width: 600px) {
  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .premium-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Container */
.p-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem; /* Smooth Apple corners */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  /* Glassmorphism Hint */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.p-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: linear-gradient(to bottom, #141416, #0f0f11);
}

/* Visual Area (Top) */
.p-visual {
  height: 180px;
  position: relative;
  background: radial-gradient(circle at center, #1a1a1e 0%, #0a0a0c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Background Icon (Decoration) */
.p-icon-bg {
  position: absolute;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.015);
  transform: rotate(-10deg);
  z-index: 0;
  transition: 0.5s;
}
.p-card:hover .p-icon-bg {
  transform: rotate(0deg) scale(1.1);
  color: rgba(255, 107, 0, 0.05);
}

/* Main Image Placeholder (Icon) */
.p-img-placeholder {
  font-size: 3.5rem;
  color: var(--color-text-muted);
  z-index: 1;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
  transition: 0.3s;
}
.p-card:hover .p-img-placeholder {
  color: white;
  transform: scale(1.1);
}

/* Badge */
.p-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 107, 0, 0.9);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  z-index: 2;
  letter-spacing: 0.05em;
}

/* Content Area (Bottom) */
.p-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* Header */
.p-header {
  margin-bottom: 1rem;
}
.p-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.p-grade {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Specs (Middle) */
.p-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: #777;
}
.p-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.p-specs i {
  color: #444;
}

/* Footer (Price / Meta) */
.p-footer {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Magic Layout: Schiebt Elemente auseinander */
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto; /* Drückt Footer immer nach unten */
  min-height: 40px; /* Prevent jump */
}

.p-meta {
  font-size: 0.75rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* PRICING TOGGLE LOGIC */
.p-price-tag {
  display: none; /* Standard: Versteckt */
  text-align: right;
}

/* Wenn Body Klasse 'show-pricing' hat (durch JS gesetzt) */
body.show-pricing .p-price-tag {
  display: block;
  animation: fadeIn 0.5s ease;
}

.price-val {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-display);
}
.price-unit {
  font-size: 0.7rem;
  color: #666;
  font-weight: 400;
}

/* Fade In Animation for Price */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlighting */
.text-orange {
  color: var(--color-primary) !important;
}

/* --- NEU: MONOCHROMATIC TECH FEATURE CARDS (Mono-Card) --- */

.mono-card {
  /* Basis-Kartenstil wie .bento-item */
  background: var(--color-bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--easing);
  display: flex;
  flex-direction: column;
}

/* Orange Glow auf Hover */
.mono-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
}

.mono-card h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.m-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5; /* Lockert den kurzen Text auf */
}

/* --- ICON STYLING (Schwarz/Weiss/Orange) --- */

.m-icon-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  /* Fügt den subtilen orangenen Kreis-Effekt hinzu */
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.2);
  border-radius: 50%;
  padding: 5px;
}

.m-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;

  /* Kern-Styling: Orange Icon auf dunklem/transparentem Grund */
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: 0.3s;
}

/* Beim Hover wird das Icon durch den orangenen Fokus hervorgehoben */
.mono-card:hover .m-icon {
  transform: scale(1.1);
  background: var(--color-primary);
  color: #000; /* Schwarzes Icon auf Orange */
  border-color: var(--color-primary);
}

/* --- 40t FULL WIDTH PROCESS --- */

.process-section-full {
  padding: 6rem 0;
  overflow: hidden; /* Wichtig, damit der Truck nicht scrollbars erzeugt */
  position: relative;
  background: radial-gradient(
    ellipse at center,
    #1b1b21 0%,
    var(--color-bg-deep) 80%
  );
}

/* Breakout Container für 100vw Breite */
.road-wrapper-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 120px; /* Platz für den großen Truck */
  margin-bottom: 3rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

/* Road Markings */
.road-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0,
    rgba(255, 255, 255, 0.1) 50px,
    transparent 50px,
    transparent 100px
  );
  z-index: 0;
}

/* Station Markers (Optional: Glowing dots on the road where truck stops) */
.road-station {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-primary);
  z-index: 1;
  opacity: 0.5;
}
/* Positionen relativ zum Viewport, passend zur Animation */
.s1 {
  left: 20%;
}
.s2 {
  left: 40%;
}
.s3 {
  left: 60%;
}
.s4 {
  left: 80%;
}

.truck-movement-wrapper {
  position: absolute;
  top: 50%;
  left: 0; /* Fixieren auf links, Bewegung macht nur noch der Transform */
  /* transform: translateY(-50%);  <-- Das entfernen wir hier und packen es in die Keyframes (siehe oben) */
  z-index: 10;
  width: 220px;
  animation: heavy-truck-cycle 16s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform; /* Sagt dem Browser: "Hier kommt Action, bereite dich vor" */
}

.truck-body-group {
  width: 100%;
  /* Leichtes Wippen der Kabine/Ladung beim Fahren */
  animation: truck-bounce 0.5s ease-in-out infinite alternate;
}

.truck-40t-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(
    0 10px 20px rgba(0, 0, 0, 0.5)
  ); /* Schatten auf der Straße */
}

/* Raddrehung */
.wheel-spin {
  transform-origin: center;
  transform-box: fill-box;
  animation: wheel-rotate 16s linear infinite; /* Synchron zur Bewegung */
}

/* Wind Lines Animation */
.wind-lines line {
  animation: wind-dash 1s linear infinite;
}
.wind-lines line:nth-child(2) {
  animation-delay: 0.3s;
}
.wind-lines line:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes wind-dash {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(-50px);
    opacity: 0;
  }
}
@keyframes heavy-truck-cycle {
  /* Wir nutzen translate3d für erzwungene GPU-Beschleunigung */
  0% {
    transform: translate3d(-250px, -50%, 0);
    opacity: 0;
  }

  /* Stop 1 */
  8% {
    transform: translate3d(20vw, -50%, 0);
    opacity: 1;
  }
  15% {
    transform: translate3d(20vw, -50%, 0);
    opacity: 1;
  }

  /* Stop 2 */
  23% {
    transform: translate3d(40vw, -50%, 0);
  }
  30% {
    transform: translate3d(40vw, -50%, 0);
  }

  /* Stop 3 */
  38% {
    transform: translate3d(60vw, -50%, 0);
  }
  45% {
    transform: translate3d(60vw, -50%, 0);
  }

  /* Stop 4 */
  53% {
    transform: translate3d(80vw, -50%, 0);
  }
  60% {
    transform: translate3d(80vw, -50%, 0);
  }

  /* Abfahrt */
  75% {
    transform: translate3d(110vw, -50%, 0);
    opacity: 1;
  }
  80% {
    transform: translate3d(110vw, -50%, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(-250px, -50%, 0);
    opacity: 0;
  }
}

/* Raddrehung stoppen wenn Truck steht */
/* Dies ist ein Trick: Wir nutzen die gleichen %-Werte wie oben */
@keyframes wheel-rotate {
  0% {
    transform: rotate(0deg);
  }
  8% {
    transform: rotate(720deg);
  } /* Fährt */
  15% {
    transform: rotate(720deg);
  } /* Steht */

  23% {
    transform: rotate(1440deg);
  } /* Fährt */
  30% {
    transform: rotate(1440deg);
  } /* Steht */

  38% {
    transform: rotate(2160deg);
  } /* Fährt */
  45% {
    transform: rotate(2160deg);
  } /* Steht */

  53% {
    transform: rotate(2880deg);
  } /* Fährt */
  60% {
    transform: rotate(2880deg);
  } /* Steht */

  75% {
    transform: rotate(4000deg);
  } /* Fährt raus */
  100% {
    transform: rotate(4000deg);
  }
}

@keyframes truck-bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

/* --- STEPS GRID (Unten drunter) --- */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
@media (min-width: 900px) {
  .process-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  transition: 0.3s;
}
.step-card:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-lighter);
  transform: translateY(-5px);
}

.step-indicator {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bg-deep);
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.step-card h4 {
  margin-bottom: 0.5rem;
  color: white;
}
.step-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- KORREKTUREN FÜR MOBILE NAVIGATION --- */

/* 1. Reset der alten mobilen Logik im Desktop-Nav-Block */
@media (min-width: 900px) {
  /* Stellt sicher, dass die Desktop-Navigation auf großen Screens korrekt angezeigt wird */
  .nav-desktop {
    display: flex; /* Bleibt Desktop-Nav */
    /* Alle weiteren Style-Überschreibungen, die vorher im JS waren, sind nun im .mobile-sidebar */
  }
}

/* --- KORRIGIERTER, MODERNER FULLSCREEN SIDEBAR --- */

/* 2. NEUE MOBILE SIDEBAR DEFINITION */
.mobile-sidebar {
  /* Positionierung: Fullscreen Overlay */
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1000;

  background: rgba(15, 15, 17, 0.98);
  border-left: none;
  box-shadow: none;

  /* Animation: Startzustand unsichtbar (Scale Down & Fade Out) */
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none; /* Blockiert Klicks, wenn unsichtbar */
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);

  /* Layout: Flex-Spalte für zentrierte Inhalte */
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert Inhalte vertikal */
  justify-content: center; /* Zentriert Inhalte horizontal */
  padding: 80px 1.5rem 2rem 1.5rem; /* Platz für Header oben lassen */
}

/* 3. AKTIVER ZUSTAND (Fullscreen) */
.mobile-sidebar.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto; /* Aktiviert Klicks */
}

/* 4. SIDEBAR INHALTE (Links) */
.mobile-sidebar a:not(.btn) {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.5rem); /* Riesige, fließende Schrift */
  font-weight: 700;
  padding: 0.5rem 0;
  color: white;
  border-bottom: none;
  transition: 0.3s;
  text-align: center;
  /* Animierter Linien-Effekt beim Hover (optional, aber modern) */
  position: relative;
  overflow: hidden;
}

.mobile-sidebar a:hover:not(.btn) {
  color: var(--color-primary);
  /* Text schiebt sich leicht nach rechts, wirkt dynamisch */
  transform: translateX(5px);
}

.mobile-sidebar a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.3s var(--easing);
}

.mobile-sidebar a:hover:not(.btn)::after {
  width: 50%; /* Elegante Unterstreichung beim Hover */
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  width: 60px; /* Kurze Trennlinie in der Mitte */
  margin: 2rem auto;
}

/* 5. CTA BUTTONS (Unten fixiert, aber hier zentriert im Flow) */
.sidebar-cta-buttons {
  /* Statt auto-margin verwenden wir margin-top, um sie nach unten zu schieben,
       aber nur so viel, dass die Hauptlinks in der Mitte bleiben */
  margin-top: 2rem;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: none;
  width: 100%;
  max-width: 280px; /* Begrenzte Breite für edlen Look */
}

.sidebar-cta-buttons .btn {
  width: 100%;
  font-size: 1rem;
  padding: 1rem 1.5rem;
}

/* 6. Toggle Sichtbarkeit */
@media (max-width: 899px) {
  .mobile-toggle {
    display: block;
    z-index: 1001;
    padding-right: 3vw;
  }
  .nav-desktop {
    display: none;
  }
}
@media (min-width: 900px) {
  .mobile-sidebar {
    display: none !important;
  }
}

/* --- MOBILE OPTIMIZATION: PROCESS SECTION --- */

@media (max-width: 900px) {
  /* 1. LKW SCALING & ANIMATION REDUCTION */

  /* Reduziert die Größe des Trucks deutlich auf kleinen Bildschirmen */
  .truck-movement-wrapper {
    width: 150px; /* Kleinerer Truck auf Mobile */
    transform: translateY(-50%) scale(0.9);
  }

  /* Reduziert die Sichtbarkeit der Road-Wrapper-Full, damit die Animation nicht überladen wirkt */
  .road-wrapper-full {
    height: 80px; /* Reduziert die Höhe der Straße */
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  /* Animation auf Mobile vereinfachen: Kürzere Fahrt, weniger Pausen */
  /* Die Pausen-Prozentsätze werden beibehalten, aber die Zeit verkürzt sich */
  .truck-movement-wrapper {
    animation-duration: 12s; /* Schnellerer Zyklus */
  }

  /* Die Wind-Lines (Rauch) des Trucks werden auf Mobile fast unsichtbar */
  .wind-lines {
    opacity: 0.1;
  }

  /* Die Road Stations (Glow Punkte) werden auf Mobile kleiner */
  .road-station {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 10px var(--color-primary);
  }

  /* 2. STEPS GRID ANPASSUNG */

  .process-steps-grid {
    grid-template-columns: 1fr; /* Stapelung: 1 Spalte auf sehr kleinen Handys */
    gap: 1.5rem;
  }

  /* 3. STEP CARD STYLING (für Lesbarkeit) */
  .step-card {
    padding: 1.5rem;
    text-align: left; /* Text linksbündig für bessere Lesbarkeit */
  }

  .step-card h4 {
    font-size: 1.2rem;
  }

  .step-indicator {
    margin-left: 0; /* Links ausrichten */
    margin-right: 1rem;
  }
}

/* Anpassung für Tablets/größere Handys (768px) */
@media (min-width: 600px) and (max-width: 900px) {
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
    gap: 1.5rem;
  }

  .step-card {
    padding: 1.5rem;
  }
}

body::before, body::after {
  /* Füge dies hinzu, um GPU-Rendering zu erzwingen */
  will-change: transform;
  transform: translateZ(0);
}

/* --- KORREKTUR: HORIZONTALER ÜBERLAUF DURCH MARQUEE --- */

#dynamic-banner-area {
  /* Zwingt den Container, alles abzuschneiden, was über seine linke/rechte Kante hinausragt. */
  overflow: hidden; 
}




/* --- MOBILE FIX: Button passt sich der Breite an --- */
@media (max-width: 600px) {
  .cta-box {
    padding: 3rem 1.5rem; /* Etwas weniger Padding im Container selbst */
  }

  .cta-box .btn-primary {
    /* Zwingt den Button, nicht breiter als der Container zu sein */
    width: 100%; 
    max-width: 100%;
    
    /* Überschreibt das zu große Inline-Padding */
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    
    /* Stellt sicher, dass er mittig bleibt */
    margin: 0 auto;
    box-sizing: border-box;
  }
}