/* ===== VARIABLES ===== */
:root {
  /* Colors - High-Tech Dark / Premium */
  --bg-main: #060606;
  --bg-darker: #020202;
  --bg-card: #0c0c0c;
  
  --accent-red: #7f0404;    /* Dunkles, kraftvolles Rot */
  --accent-glow: #b60a0a;   /* Glow in lighter red */
  --accent-logo: #d41414;   /* Signalrot fuer das Logo (praesenter) */
  
  --text-pure: #ffffff;
  --text-main: #e5e5e5;
  --text-muted: #888888;
  
  --border-light: rgba(255,255,255,0.08);
  --border-hover: rgba(127, 4, 4, 0.4);
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  
  /* Layout */
  --container-max: 1280px;
  --spacing-section: 8rem;
  
  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; transition: var(--trans-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  color: var(--text-pure);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.text-accent { color: var(--accent-red); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-5 { margin-bottom: 4rem; }

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 4rem;
}

.tech-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-glow);
  font-weight: 700;
  border: 1px solid rgba(127, 4, 4, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  background: rgba(127, 4, 4, 0.05);
  margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--trans-base);
  cursor: pointer;
  border: 1px solid transparent;
  /* Premium modern button: slight rounding, sharp tech feel */
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--accent-red);
  color: var(--text-pure);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(127, 4, 4, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-glow);
  box-shadow: 0 0 30px rgba(182, 10, 10, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255,255,255,0.05);
  color: var(--text-pure);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(127, 4, 4, 0.4);
  color: var(--text-pure);
}

.btn-outline:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 0 15px rgba(127, 4, 4, 0.3) inset;
}

.btn-block { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--trans-base);
  background: linear-gradient(to bottom, rgba(6,6,6,0.9), rgba(6,6,6,0));
}

.header.scrolled {
  background: rgba(6, 6, 6, 0.95);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-decoration: none;
}

.logo-main {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text-pure);
  line-height: 0.95;
  text-transform: uppercase;
  padding-bottom: 7px;
  border-bottom: 3px solid var(--accent-logo);
}

.logo a.logo-main {
  text-decoration: none;
}

.logo-sub {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-pure);
  margin-top: 7px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:not(.btn):hover { color: var(--text-pure); }

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: var(--trans-fast);
}

.nav-links a:not(.btn):hover::after { width: 100%; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.burger-line {
  width: 30px;
  height: 2px;
  background: var(--text-pure);
  transition: var(--trans-base);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(127, 4, 4, 0.15) 0%, rgba(6,6,6,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.visual-wrapper {
  position: relative;
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(127, 4, 4, 0.2) 0%, rgba(6,6,6,0) 60%);
  z-index: -1;
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.1) brightness(0.9);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter var(--trans-base);
}

.hero-image-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.12),
    rgba(0,0,0,0)
  );
  transition: var(--trans-base);
  pointer-events: none;
}

.hero-image-glow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  box-shadow: inset 0 0 0 0 rgba(127,4,4,0);
  transition: var(--trans-base);
  pointer-events: none;
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.05);
  filter: contrast(1.15) brightness(1);
}

.hero-image-frame:hover .hero-image-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05)
  );
}

.hero-image-frame:hover .hero-image-glow {
  box-shadow: inset 0 0 20px 2px rgba(127,4,4,0.5);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-darker);
  padding: 3rem 0;
}

.trust-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-value {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-main);
  background: linear-gradient(135deg, #fff 0%, #666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== SECTIONS ===== */
.section { padding: var(--spacing-section) 0; }
.section-dark { background-color: var(--bg-darker); }
.section-darker { background-color: #020202; }

/* ===== Herausforderungen (Problem) Horizontal, minimalist ===== */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.challenge-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--accent-red);
}

.challenge-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.challenge-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== LEISTUNGEN ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  display: block;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.service-image-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.service-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* no global filter for pure image clarity */
}

.service-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15),
    rgba(0,0,0,0)
  );
  transition: var(--trans-base);
}

.service-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 3rem 2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.service-content h3 {
  font-size: 1.5rem;
  margin: 0;
  transform: translateY(10px);
  transition: var(--trans-base);
}

.service-arrow {
  color: var(--accent-red);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--trans-base);
}

.service-glow-effect {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  box-shadow: inset 0 0 0 0 rgba(127,4,4,0);
  transition: var(--trans-base);
  z-index: 3;
}

.service-card:hover .service-image-wrap img {
  transform: scale(1.05);
}

.service-card:hover .service-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.05)
  );
}

.service-card:hover .service-content h3 {
  transform: translateY(0);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-card:hover .service-glow-effect {
  box-shadow: inset 0 0 20px 2px rgba(127,4,4,0.5);
  border-color: var(--accent-red);
}

/* White-Background Machine Image Blending */
.blend-bg-wrap {
  background-color: #888; /* Optimal gray base for multiply to look dark but not black out the machine details */
}

.blend-bg-wrap img.blend-multiply {
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.1); /* Helligkeit und Kontrast leicht erhöhen, kein grayscale! */
}

/* ===== SUBPAGE TITLE SECTION ===== */
.subpage-title-section {
  padding-top: 150px; /* Forces layout below fixed navigation elements */
  padding-bottom: 40px;
  background: var(--bg-main); 
  border-bottom: 1px solid var(--border-light);
}

.subpage-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-pure);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-align: left;
}

.subpage-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-align: left;
  max-width: 800px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .subpage-title-section {
    padding-top: 120px;
  }
  .subpage-title {
    font-size: 2rem;
  }
}

/* ===== MACHINE PAGE CARDS ===== */
.machine-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .machine-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .machine-cards-grid {
    grid-template-columns: 1fr;
  }
}

.machine-page-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.machine-card-image-wrapper {
  background-color: #080808;
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.machine-card-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px rgba(0,0,0,0.8));
}

.machine-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.machine-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.machine-card-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.machine-card-specs {
  border-top: 1px solid rgba(255,255,255,0.05); /* very subtle separation */
  padding-top: 1.2rem;
}

/* ===== MODALS & ACCORDIONS ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  width: 90%;
  max-width: 600px;
  border-radius: 4px;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-pure);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-pure);
}

.modal-text {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Machine Accordion inside Modal */
.machine-item {
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.machine-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.2s ease;
}

.machine-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.machine-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.machine-details {
  display: none;
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-dark);
}

.machine-item.active .machine-details {
  display: block;
}

.machine-intro {
  color: var(--text-pure);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 500;
  line-height: 1.5;
}

.machine-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .machine-specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-block {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.spec-list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list-clean li {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.benefit-list li::before {
  content: '→';
  color: var(--accent-red);
  margin-right: 0.6rem;
  font-weight: bold;
}

.data-list li {
  display: block;
}

.data-list strong {
  display: inline-block;
  min-width: 140px;
  color: var(--text-pure);
  font-weight: 500;
  margin-right: 0.5rem;
}

/* Clickable Services */
.service-clickable {
  cursor: pointer;
}

/* ===== PROZESS (Horizontal Timeline) ===== */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 4rem;
}

.timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-light);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 20%;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-red);
  border-radius: 50%;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-icon {
  width: 40px;
  height: 40px;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.timeline-step h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.timeline-step:hover h4 { color: var(--text-pure); }

/* ===== BRANCHEN ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.industry-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.industry-icon {
  color: var(--accent-red);
  width: 36px;
  height: 36px;
  margin-bottom: 2rem;
  transition: var(--trans-base);
}

.industry-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-pure);
}

.industry-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.industry-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(127, 4, 4, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.industry-card:hover .industry-icon {
  transform: scale(1.1);
  color: var(--text-pure); /* subtle transition on hover to pure text color */
}

@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ===== DIFFERENZIERUNG (Big Statements) ===== */
.statement-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.statement {
  position: relative;
  padding-left: 6rem;
}

.statement-accent {
  position: absolute;
  left: 0; top: -10px;
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 4, 4, 0.4);
}

.statement-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.statement-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ===== CTA BLOCK ===== */
.section-cta {
  padding: 8rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(6,6,6,1) 0%, rgba(127,4,4,0.1) 100%);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.cta-glow-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; height: 100vw;
  background: radial-gradient(circle, rgba(127, 4, 4, 0.1) 0%, rgba(0,0,0,0) 50%);
  z-index: -1;
}

.cta-title {
  font-size: clamp(3rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.5rem;
  color: var(--accent-red);
  margin-bottom: 3rem;
  font-weight: 500;
}

.cta-actions {
  justify-content: center;
}

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  color: var(--accent-red);
  width: 28px;
  height: 28px;
}

.contact-item h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: 1.25rem;
  font-weight: 500;
}

.contact-form-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.form-group input {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  color: var(--text-pure);
  font-family: inherit;
  transition: var(--trans-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-red);
  background: rgba(127,4,4,0.05);
}

.file-upload-area {
  border: 1px dashed var(--border-light);
  background: rgba(0,0,0,0.3);
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--trans-fast);
  cursor: pointer;
}

.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--accent-red);
  background: rgba(127, 4, 4, 0.05);
}

.upload-icon {
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.file-upload-area p {
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.file-upload-area p span {
  color: var(--accent-red);
  text-decoration: underline;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0;
  background: var(--bg-darker);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo-main {
  font-size: 2.25rem;
}

.footer-brand .logo-sub {
  font-size: 0.9rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-pure);
}

/* ===== UEBER UNS ===== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.team-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: 4px;
}

.team-name {
  color: var(--text-pure);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.team-role {
  color: var(--text-muted);
  line-height: 1.6;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2.5rem;
  border-left: 1px solid var(--accent-red);
}

.history-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item::before {
  content: '';
  position: absolute;
  left: -2.9rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background-color: var(--accent-red);
  border-radius: 50%;
  border: 4px solid var(--bg-dark);
}

.history-year {
  color: var(--text-pure);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.history-content {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ===== GALLERY (FERTIGUNG) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.gallery-item.item-large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 1s ease;
  filter: contrast(1.1) brightness(0.7) grayscale(30%);
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(127,4,4,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--trans-base);
}

.gallery-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transform: translateY(15px);
  transition: var(--trans-base);
}

.gallery-overlay p {
  color: var(--text-main);
  font-size: 0.9rem;
  transform: translateY(15px);
  transition: var(--trans-base);
  transition-delay: 0.05s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: contrast(1.2) brightness(1) grayscale(0%);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .gallery-item.item-large {
    grid-row: span 1;
  }
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-left { transform: translateX(50px); }
.fade-right { transform: translateX(-50px); }
.fade-up { transform: translateY(40px); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.machine-card-bottom {
  display: flex;
  flex-direction: column;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-download:hover {
  background-color: #a30707; /* brighter red */
  box-shadow: 0 0 15px rgba(127, 4, 4, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .challenge-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .statement { padding-left: 0; }
  .statement-accent { position: static; display: block; margin-bottom: 1rem; }
  .timeline { flex-wrap: wrap; justify-content: flex-start; gap: 2rem 0; }
  .timeline-line { display: none; }
  .timeline-step { width: 33.333%; }
}

@media (max-width: 768px) {
  .logo-main { font-size: 1.9rem; }
  .logo-sub { font-size: 0.8rem; letter-spacing: 0.18em; }
  .hero { padding-top: 150px; }

  .nav-links {
    position: fixed;
    top: 100px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 100px);
    background: var(--bg-main);
    flex-direction: column;
    padding: 3rem;
    align-items: flex-start;
    transition: var(--trans-base);
  }
  .nav-links.active { left: 0; }
  .mobile-menu-toggle { display: flex; }
  
  .challenge-grid, .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
  .hero-actions, .cta-actions { flex-direction: column; }
  
  .timeline-step { width: 50%; }
}
