/* ==========================================================================
   Rädler & Reutemann Werkzeug- und Maschinenbau GmbH
   Design System & Styling (EN 9100 High-Tech Dark Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Default Transition Values */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --bg-glass: rgba(16, 22, 34, 0.85);
  --radius-full: 9999px;
  
  /* Aerospace Titanium Theme (EN 9100 High-Precision) */
  --bg-dark: #0A0E17; /* Void Space Navy */
  --bg-surface: #101622; /* Machined Slate */
  --bg-surface-elevated: #172030;
  --bg-card: rgba(16, 22, 34, 0.75);
  --primary-cyan: #C5A059; /* Aerospace Gold */
  --primary-cyan-glow: rgba(197, 160, 89, 0.2);
  --primary-blue: #38BDF8; /* Sky/Aero Blue */
  --primary-blue-dark: #0284C7;
  --gold-cert: #C5A059;
  --gold-glow: rgba(197, 160, 89, 0.15);
  --emerald-success: #10B981;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --border-subtle: rgba(148, 163, 184, 0.12); /* Clean, thin technical borders */
  --border-glow: rgba(197, 160, 89, 0.25);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 4px; /* Chamfered micro-radii */
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(197, 160, 89, 0.12);
}

[data-theme="light"] {
  --bg-dark: #F0F2F5; /* Soft medical cleanroom gray */
  --bg-surface: #F8FAFC;
  --bg-surface-elevated: #E2E8F0;
  --bg-glass: rgba(248, 250, 252, 0.96);
  --bg-card: #FFFFFF;
  --primary-cyan: #A17E3F;
  --primary-cyan-glow: rgba(161, 126, 63, 0.12);
  --primary-blue: #0284C7;
  --primary-blue-dark: #0369A1;
  --gold-cert: #A17E3F;
  --gold-glow: rgba(161, 126, 63, 0.10);
  --emerald-success: #059669;
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --border-subtle: #E2E8F0;
  --border-glow: rgba(161, 126, 63, 0.2);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-glow: none;
}

/* Explicit Light Mode Element Overrides for Flawless Readability */
[data-theme="light"] body {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

[data-theme="light"] .header.scrolled {
  background: var(--bg-glass);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero {
  background: radial-gradient(circle at 70% 30%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(3, 105, 161, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .section-tag {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--primary-cyan);
}

[data-theme="light"] .section-title span {
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .service-card,
[data-theme="light"] .tech-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .benefit-item,
[data-theme="light"] .career-card-box,
[data-theme="light"] .metric-card,
[data-theme="light"] .timeline-item,
[data-theme="light"] .management-card,
[data-theme="light"] .building-media-card,
[data-theme="light"] .machine-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .tech-card:hover,
[data-theme="light"] .timeline-item:hover,
[data-theme="light"] .management-card:hover,
[data-theme="light"] .building-media-card:hover,
[data-theme="light"] .machine-card:hover {
  border-color: #0284C7;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .btn-milestones {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06), rgba(3, 105, 161, 0.08));
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .btn-milestones:hover {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  border-color: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .metric-card:hover {
  border-color: #0284C7;
}

[data-theme="light"] .metric-icon-box {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284C7;
}

[data-theme="light"] .metric-card.gold-accent {
  background: #FFFBEB;
  border-color: #F59E0B;
}

[data-theme="light"] .metric-value.gold-text {
  color: #B45309;
}

[data-theme="light"] .en9100-card {
  background: linear-gradient(135deg, #FFFBEB, #FFFFFF);
  border-color: #F59E0B;
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.1);
}

[data-theme="light"] .en9100-list li {
  color: #1E293B;
}

[data-theme="light"] .inquiry-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-control {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .form-control:focus {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .modal-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .footer {
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
  color: #475569;
}

[data-theme="light"] .footer-col h4 {
  color: #0F172A;
}

[data-theme="light"] .footer-bottom {
  border-top-color: #E2E8F0;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #0369A1, #075985);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

[data-theme="light"] .btn-secondary {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

[data-theme="light"] .btn-secondary:hover {
  background: #E2E8F0;
  color: #0284C7;
  border-color: #0284C7;
}

[data-theme="light"] .tech-tags span {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #334155;
}

[data-theme="light"] .hero-badge-item {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* Theme Toggle Button Styling */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon,
:root:not([data-theme="light"]) .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon,
:root:not([data-theme="light"]) .moon-icon {
  display: none;
}

/* Reset & Core */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 680px;
  margin-bottom: 3rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(8, 11, 16, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 1002;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--primary-cyan-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--primary-cyan) !important;
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cyan);
  transition: width var(--transition-fast);
  box-shadow: 0 0 10px var(--primary-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* EN 9100 Gold Badge & Pill Buttons */
button.cert-pill,
a.cert-pill,
.cert-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 199, 0, 0.12);
  border: 1px solid rgba(255, 199, 0, 0.5);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-cert);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
  outline: none;
  box-shadow: 0 0 12px rgba(255, 199, 0, 0.12);
}

button.cert-pill:hover,
a.cert-pill:hover,
.cert-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 199, 0, 0.22);
  border-color: var(--gold-cert);
  box-shadow: 0 0 20px var(--gold-glow);
  color: #FFFFFF;
}

.cert-pill img {
  height: 20px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.6);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0295E0 0%, #0284C7 100%);
  color: #FFFFFF;
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.5), 0 0 15px rgba(197, 160, 89, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.btn-primary:hover::before {
  left: 140%;
  transition: all 0.65s ease-in-out;
}

.btn-secondary {
  background: rgba(16, 22, 34, 0.6);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: rgba(197, 160, 89, 0.5);
  color: #C5A059;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 14, 23, 0.3);
}

.btn-gold {
  background: rgba(197, 160, 89, 0.1);
  color: var(--gold-cert);
  border: 1px solid var(--gold-cert);
}

.btn-gold:hover {
  background: rgba(197, 160, 89, 0.2);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border: 1px solid #C5A059;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  color: #FFFFFF;
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2), 0 0 14px rgba(197, 160, 89, 0.25);
}

.cert-pill {
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  border-color: rgba(197, 160, 89, 0.35);
  background: rgba(197, 160, 89, 0.06);
}

.btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 99px;
  margin-left: 0.5rem;
  line-height: 1;
  background: #C5A059;
  color: #0A0E17;
  border: 1px solid #FFFFFF;
  transition: all var(--transition-fast);
}

[data-theme="light"] .btn-primary .btn-badge {
  background: rgba(197, 160, 89, 0.25);
  color: #E6C254;
  border: 1px solid rgba(230, 194, 84, 0.5);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: auto;
  padding-top: 110px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(0, 114, 255, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, #FFF 30%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 640px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-main);
}

.hero-badge-item svg {
  color: var(--primary-cyan);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  background: var(--bg-surface);
}

.hero-card-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.6s ease;
}

.hero-card-preview:hover .hero-card-img {
  transform: scale(1.04);
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(8, 11, 16, 0.95), transparent);
}

.hero-card-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--gold-cert);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-card-title {
  font-size: 1.3rem;
  color: #FFF;
}

/* Metric Counter Strip Cards */
.metrics-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.8rem 0;
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
  position: relative;
}

.metric-card:hover {
  border-color: var(--primary-cyan);
}

.metric-card.gold-accent {
  background: rgba(255, 199, 0, 0.04);
  border-color: rgba(255, 199, 0, 0.3);
}

.metric-card.gold-accent:hover {
  border-color: var(--gold-cert);
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.metric-icon-box.gold {
  background: rgba(255, 199, 0, 0.12);
  border-color: rgba(255, 199, 0, 0.3);
  color: var(--gold-cert);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.metric-value.gold-text {
  color: var(--gold-cert);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Management & Company Media Cards */
.management-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.management-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.management-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 0 20px var(--primary-cyan-glow);
  flex-shrink: 0;
}

.management-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.management-names {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.management-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.building-media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.building-media-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.building-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.btn-milestones {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 114, 255, 0.12));
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-milestones:hover {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border-color: var(--primary-cyan);
  color: #050B14;
  box-shadow: 0 0 25px var(--primary-cyan-glow);
  transform: translateY(-2px);
}

.btn-milestones svg {
  transition: transform var(--transition-fast);
}

.btn-milestones:hover svg {
  transform: translateX(4px);
}

/* Sections Styling */
.section {
  padding: 3.5rem 0;
  position: relative;
}

/* Company History Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.timeline-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
  transition: all var(--transition-fast);
}

.timeline-item:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.1);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-cyan);
  margin-bottom: 0.35rem;
}

.timeline-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* EN 9100 Aerospace Feature Card */
.en9100-card {
  background: linear-gradient(135deg, rgba(22, 32, 50, 0.8), rgba(15, 21, 33, 0.9));
  border: 1px solid var(--gold-cert);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 0 35px rgba(255, 199, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.en9100-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.en9100-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 199, 0, 0.15);
  border: 1px solid var(--gold-cert);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  color: var(--gold-cert);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.en9100-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}

.en9100-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

.en9100-list svg {
  color: var(--gold-cert);
  flex-shrink: 0;
}

/* Services Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-cyan-glow);
}

.service-card .btn {
  width: 100%;
  margin-top: 1.5rem;
  justify-content: center;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-cyan);
  font-weight: bold;
}

/* Machine Park Filter Section */
/* High-Tech Showcase Grid (Produktion & Maschinenpark) */
.tech-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-cyan);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4), 0 0 25px var(--primary-cyan-glow);
}

.tech-card-image-box {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: var(--bg-dark);
}

.tech-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tech-card:hover .tech-card-img {
  transform: scale(1.05);
}

.tech-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 21, 33, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.tech-card-title {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.tech-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-tags span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-cyan);
  color: #000;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px var(--primary-cyan-glow);
}

/* Equipment / Machine Cards (High-Tech Technical Spec Cards) */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.machine-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.machine-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.machine-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(197, 160, 89, 0.12);
}

.machine-card:hover::before {
  opacity: 1;
}

.machine-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-heading);
}

.machine-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.machine-type svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.machine-specs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.machine-specs > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.machine-card:hover .machine-specs > span {
  border-color: rgba(197, 160, 89, 0.18);
  background: rgba(10, 14, 23, 0.7);
}

.machine-specs strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.machine-specs span > span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  font-family: var(--font-heading);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.machine-specs a {
  color: var(--primary-cyan);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.machine-specs a:hover {
  color: var(--primary-blue);
}

/* Light Theme Overrides for Machine Cards */
[data-theme="light"] .machine-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .machine-card:hover {
  border-color: #A17E3F;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .machine-specs > span {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .machine-card:hover .machine-specs > span {
  background: #F1F5F9;
  border-color: rgba(161, 126, 63, 0.25);
}

[data-theme="light"] .machine-specs span > span {
  color: #0F172A;
}

/* Recruiting / Career Section (Bewerber & Allgäu) */
.career-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
}

.benefit-icon {
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin-bottom: 0.5rem;
}

.benefit-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.benefit-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.career-card-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.career-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.career-card-content {
  padding: 2rem;
}

/* Classic Quick Inquiry Section (Ohne Upload) */
.inquiry-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Contact & Map Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-detail-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Interactive Map Layout */
.map-wrapper {
  width: 100%;
  min-height: 380px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.map-wrapper:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.map-wrapper iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border: none;
  color: #050B14 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-sizing: border-box;
}

.map-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 25px var(--primary-cyan-glow);
}

/* Light Mode Map Overrides */
[data-theme="light"] .map-wrapper {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .map-wrapper:hover {
  border-color: #0284C7;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .map-btn {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border-top: none;
  color: #FFFFFF !important;
}

[data-theme="light"] .map-btn:hover {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px var(--primary-cyan-glow);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close:not(.btn) {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all var(--transition-fast);
}

.modal-close:not(.btn):hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
}

.modal-close.btn {
  position: static;
  margin: 0;
  width: auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--emerald-success);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  animation: slideInRight 0.4s ease forwards;
}

.toast.toast-error {
  border-color: #EF4444;
}

.toast.toast-warning {
  border-color: #F59E0B;
}

/* Anti-Spam Honeypot Traps (Offscreen, inaccessible to humans & screen readers, attractive to bots) */
.antispam-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  z-index: -100 !important;
}

/* Form field inline validation hints */
.form-field-hint {
  font-size: 0.82rem;
  margin-top: 0.35rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.form-field-hint.hint-error {
  color: #EF4444;
}

.form-field-hint.hint-warning {
  color: #F59E0B;
}

/* Crawler-Proof Email Protection (Bidirectional text rendering) */
.email-safe {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s ease;
}

.email-safe:hover,
.email-safe:focus {
  color: var(--primary-cyan);
}

.email-safe-text {
  direction: rtl;
  unicode-bidi: bidi-override;
  display: inline-block;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: #04060A;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Grid Layout Utilities & Loaders */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Loading Spinner for Buttons */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinner-spin 0.8s linear infinite;
}

@keyframes spinner-spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 10px 4px rgba(16, 185, 129, 0.4); }
  100% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
}



/* ==========================================================================
   Comprehensive Mobile & Tablet Media Queries
   ========================================================================== */

/* ==========================================================================
   Comprehensive Mobile & Tablet Media Queries (Fully Touch & iOS Optimized)
   ========================================================================== */

@media (max-width: 1140px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero-grid, 
  .en9100-card, 
  .career-grid, 
  .contact-grid, 
  .footer-grid,
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 2.2rem !important;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .metric-item:nth-child(2)::after {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.7rem);
  }
  
  .hero-card-img {
    height: 280px;
  }

  /* Mobile Drawer Menu (100dvh for iOS Safari) */
  .header {
    height: 70px;
  }

  .nav-wrapper {
    height: 70px;
  }

  .logo-brand {
    flex-shrink: 0;
  }

  .logo-img {
    height: 38px !important;
    max-width: 170px;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100dvh - 70px);
    background: rgba(8, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transition: left var(--transition-normal);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
  }

  .en9100-card {
    padding: 1.75rem;
  }
}

@media (max-width: 680px) {
  html, body {
    overflow-x: hidden;
  }

  .logo-brand {
    flex-shrink: 0;
    max-width: 55%;
  }

  .logo-img {
    height: 32px !important;
    max-width: 140px;
    width: auto;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .cert-pill span {
    display: none;
  }

  .header-actions .cert-pill {
    padding: 0.45rem 0.55rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.3rem);
    line-height: 1.25;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-badges {
    gap: 0.6rem;
  }

  .hero-badge-item {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .metric-value {
    font-size: 1.85rem;
    min-height: 2.3rem;
  }

  .metric-label {
    font-size: 0.75rem;
  }

  /* Horizontal Swipeable Machine Filter Tabs on Mobile */
  .filter-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .tech-showcase-grid,
  .services-grid,
  .form-grid,
  .benefits-list,
  .machine-grid {
    grid-template-columns: 1fr !important;
  }

  .inquiry-box,
  .contact-info-card,
  .tech-card-body,
  .service-card,
  .machine-card {
    padding: 1.25rem;
  }

  .form-control {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    padding: 0.85rem 1rem;
  }

  .btn {
    width: 100%;
    padding: 0.85rem 1.2rem;
    min-height: 44px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .modal-box {
    padding: 1.5rem 1.15rem 1.75rem 1.15rem;
    width: 95%;
    max-height: 88dvh;
    border-radius: var(--radius-md);
    position: relative;
  }

  .modal-close:not(.btn) {
    top: 0.65rem;
    right: 0.65rem;
    width: 42px;
    height: 42px;
    font-size: 1.65rem;
    z-index: 100;
  }

  .modal-close.btn {
    width: 100% !important;
    min-height: 44px;
    margin-top: 0.5rem;
  }

  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .toast {
    width: 100%;
  }

  #cookie-trigger-floating {
    bottom: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 400px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-item::after {
    display: none !important;
  }
  
  .cert-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
/* ==========================================================================
   Cookie Consent Banner (Compact & Streamlined)
   ========================================================================== */
.cookie-banner-backdrop {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(4, 7, 12, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 4000;
  padding: 0.75rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-banner-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  animation: slideUpConsent 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpConsent {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.cookie-banner-header svg {
  width: 20px;
  height: 20px;
}

.cookie-banner-header h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 0;
}

.cookie-banner-box p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 0.75rem 0;
  text-align: left;
}

.cookie-banner-box p a {
  color: var(--primary-cyan);
  text-decoration: underline;
}

.cookie-settings-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.cookie-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-cyan);
  cursor: pointer;
}

.cookie-option-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-option-text strong {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
}

.cookie-option-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  width: auto !important;
}

/* Floating Manage Button */
#cookie-trigger-floating {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3900;
  transition: all var(--transition-fast);
}

#cookie-trigger-floating:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px var(--primary-cyan-glow);
  transform: scale(1.05);
}

/* Light Theme Cookie Overrides */
[data-theme="light"] .cookie-banner-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

[data-theme="light"] .cookie-option {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

[data-theme="light"] #cookie-trigger-floating {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

@media (max-width: 576px) {
  .cookie-banner-backdrop {
    padding: 0.75rem;
  }
  
  .cookie-banner-box {
    padding: 1.25rem;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* ==========================================================================
   Teilespektrum Showcase Slider
   ========================================================================== */

/* Outer wrapper owns the arrows - must NOT clip overflow */
.showcase-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

/* Image frame clips only the image */
.showcase-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #dbe2ed;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px var(--primary-cyan-glow);
}

[data-design="aerospace"] .showcase-frame {
  border-color: rgba(197, 160, 89, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(197, 160, 89, 0.2);
}

.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.showcase-frame img.fading {
  opacity: 0;
  transform: scale(0.97);
}

/* Dark gradient inside frame */
.showcase-gradient {
  display: none;
}

/* Caption sits as floating glass badge at bottom of frame */
.showcase-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.showcase-caption-text {
  flex: 1;
  min-width: 0;
}

.s-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

[data-design="aerospace"] .s-badge {
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
}

.s-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
}

.s-desc {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
  margin: 0;
  line-height: 1.5;
}

.showcase-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.showcase-zoom svg {
  color: #ffffff;
  transition: transform var(--transition-fast);
}

.showcase-zoom:hover {
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: #000;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.showcase-zoom:hover svg {
  color: #000;
}

[data-design="aerospace"] .showcase-zoom:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #0A0E17;
}

[data-design="aerospace"] .showcase-zoom:hover svg {
  color: #0A0E17;
}

/* Thin autoplay progress bar inside frame */
.showcase-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary-cyan);
  z-index: 4;
  opacity: 0.9;
}

.showcase-progress.animating {
  animation: sprogress 5s linear forwards;
}

@keyframes sprogress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Nav arrows are children of .showcase-wrapper (overflow:visible) */
.showcase-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.showcase-nav:hover {
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 24px var(--primary-cyan-glow);
}

.showcase-nav.prev { left: -28px; }
.showcase-nav.next { right: -28px; }

/* Bottom controls */
.showcase-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-counter {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.showcase-counter .cur {
  color: var(--primary-cyan);
  font-size: 1.2rem;
}

.showcase-thumbs {
  position: relative;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glow) transparent;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.showcase-thumbs.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.showcase-thumbs::-webkit-scrollbar {
  height: 4px;
}

.showcase-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.showcase-thumbs::-webkit-scrollbar-thumb {
  background: var(--border-glow);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.showcase-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}

.showcase-thumb {
  width: 92px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #dbe2ed;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.showcase-thumb:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.showcase-thumb.active {
  opacity: 1;
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 14px var(--primary-cyan-glow);
}

@media (max-width: 760px) {
  .showcase-nav.prev { left: 8px; }
  .showcase-nav.next { right: 8px; }
  .showcase-frame { aspect-ratio: 4 / 3; }
  /* Hide caption on mobile slider frame (not in fullscreen) */
  .showcase-caption { display: none !important; }
  .showcase-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }
  .showcase-thumbs {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .showcase-thumb { width: 64px; height: 44px; }
}

/* True Edge-to-Edge Fullscreen Lightbox Modal */
#modal-lightbox {
  padding: 0 !important;
  background: #dbe2ed !important;
  overflow: hidden !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: touch;
}

#modal-lightbox .lightbox-box {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #dbe2ed !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
  overflow: hidden !important;
  touch-action: none !important;
}

.lightbox-img-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbe2ed;
  overflow: hidden;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-img-container img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  border-radius: 0;
  border: none;
  box-shadow: none;
  touch-action: none !important;
  cursor: zoom-in;
  will-change: transform;
  transform-origin: center center;
}

/* Lightbox controls overlaid on top of full-bleed image */
#modal-lightbox .modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #FFFFFF;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-fast);
  cursor: pointer;
}

#modal-lightbox .modal-close:hover {
  background: var(--primary-cyan);
  color: #000;
  border-color: var(--primary-cyan);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn.prev { left: 1.5rem; }
.lightbox-nav-btn.next { right: 1.5rem; }

.lightbox-nav-btn:hover {
  background: var(--primary-cyan);
  color: #000000;
  border-color: var(--primary-cyan);
  transform: translateY(-50%) scale(1.12);
}

[data-design="aerospace"] .lightbox-nav-btn:hover {
  background: #D4AF37;
  color: #0A0E17;
  border-color: #D4AF37;
}

.lightbox-meta {
  display: none !important;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  text-align: center;
  width: calc(100% - 3rem);
  max-width: 750px;
  background: rgba(8, 12, 20, 0.82);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.lightbox-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: #FFFFFF;
}

.lightbox-meta p {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
  margin: 0;
}

@media (max-width: 680px) {
  .lightbox-nav-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
  .lightbox-nav-btn.prev { left: 0.5rem; }
  .lightbox-nav-btn.next { right: 0.5rem; }
  .lightbox-meta {
    bottom: 1rem;
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    width: calc(100% - 1.5rem);
  }
  .lightbox-meta h3 { font-size: 1rem; }
  .lightbox-meta p { font-size: 0.8rem; }
}

