/* ==========================================================================
   BETTERCORE — Design System & Custom Styles
   Primary Accent: #4E95D9 | Background: #000000
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Core Colors */
  --color-bg: #000000;
  --color-bg-elevated: #06090e;
  --color-bg-card: rgba(13, 20, 32, 0.65);
  --color-bg-glass: rgba(5, 8, 13, 0.85);

  /* Requested Accent Color: #4E95D9 */
  --color-accent: #4E95D9;
  --color-accent-light: #7bb8f5;
  --color-accent-dark: #2a6cb0;
  --color-accent-glow: rgba(78, 149, 217, 0.45);
  --color-accent-subtle: rgba(78, 149, 217, 0.12);

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0aec0;
  --color-text-muted: #64748b;

  /* Borders & Shadows */
  --border-glass: rgba(78, 149, 217, 0.22);
  --shadow-glow: 0 0 35px rgba(78, 149, 217, 0.35);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.8);

  /* Transitions & Radii */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(78, 149, 217, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(78, 149, 217, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(78, 149, 217, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ==========================================================================
   Hauptleiste (Header / Navigation Bar)
   ========================================================================== */
.hauptleiste {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.hauptleiste.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(78, 149, 217, 0.15);
  background: rgba(0, 0, 0, 0.92);
}

.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BETTERCORE Brand Name in Header */
.brand-logo {
  flex: 0 0 auto;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  position: relative;
  group: true;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 3rem;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 0 25px var(--color-accent-glow);
  transition: var(--transition-smooth);
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

/* Optischer Kerning-Ausgleich für das 1. E (näher an B, harmonischer zu T) */
.kern-e1 {
  margin-left: -0.018em;
  margin-right: 0.015em;
  display: inline-block;
}

/* Optischer Kerning-Ausgleich für das 2. T (verhindert gedrängte T-Querbalken) */
.kern-t2 {
  margin-left: 0.025em;
  margin-right: -0.012em;
  display: inline-block;
}

/* Optischer Kerning-Ausgleich genau zwischen R und C */
.kern-core {
  margin-left: -0.028em;
  display: inline-block;
}

.brand-logo:hover .brand-text {
  color: var(--color-accent-light);
  text-shadow: 0 0 35px rgba(78, 149, 217, 0.8);
  transform: scale(1.02);
}

/* Optional Accent Dot */
.brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--color-accent);
  }

  50% {
    transform: scale(1.3);
    box-shadow: 0 0 22px var(--color-accent-light);
  }
}

/* Navigation Links — Festes Layout ohne Verschieben beim Sprachwechsel */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
  min-width: 95px;
  display: inline-block;
  text-align: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

/* Feste Mindestbreite für Aktionsbuttons in der Header-Leiste, damit beim DE/EN-Wechsel nichts verrutscht */
#header-cta {
  min-width: 140px;
  padding: 0.6rem 1.35rem;
  justify-content: center;
}

#btn-back {
  min-width: 230px;
  justify-content: center;
}

/* Language Toggle Button — Cyber-Pill Segmented Switch (Tron-Stil) */
.lang-toggle {
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid rgba(78, 149, 217, 0.35);
  border-radius: var(--radius-full);
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(78, 149, 217, 0.15);
  transition: all 0.3s ease;
  user-select: none;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(78, 149, 217, 0.4);
}

.lang-label {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-label.active {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1a62a6 100%);
  color: #ffffff;
  box-shadow:
    0 0 14px rgba(78, 149, 217, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Arcade Tron Glowing Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(123, 184, 245, 0.75);
  box-shadow:
    0 0 22px rgba(78, 149, 217, 0.65),
    inset 0 0 10px rgba(255, 255, 255, 0.25);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(78, 149, 217, 0.55),
    inset 0 0 12px rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--color-accent);
  box-shadow:
    0 0 15px rgba(78, 149, 217, 0.3),
    inset 0 0 8px rgba(78, 149, 217, 0.2);
  text-shadow: 0 0 5px rgba(78, 149, 217, 0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow:
    0 0 25px rgba(78, 149, 217, 0.6),
    inset 0 0 12px rgba(78, 149, 217, 0.35);
  color: #fff;
  text-shadow: 0 0 10px var(--color-accent-light);
}

/* ==========================================================================
   Brand Banner Section
   ========================================================================== */
.banner {
  position: relative;
  min-height: 80vh;
  margin-top: 5.5rem;
  /* Header clearance */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000000;
  border-bottom: 1px solid rgba(78, 149, 217, 0.3);
}

/* Structural top/bottom glowing borders */
.banner::before,
.banner::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--color-accent) 50%, transparent 90%);
  box-shadow: 0 0 15px rgba(78, 149, 217, 0.8);
  z-index: 3;
}

.banner::before {
  top: 0;
}

.banner::after {
  bottom: 0;
}

/* Schematic Blueprint Grid background with 3D Tron Perspective (Floor-only) */
.banner-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 250px;
  perspective-origin: 50% 60%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Vibrant Floor Grid */
.banner-grid::before {
  content: '';
  position: absolute;
  top: 60%;
  left: -50%;
  width: 200%;
  height: 150%;
  background-image:
    linear-gradient(rgba(78, 149, 217, 0.45) 2px, transparent 2px),
    linear-gradient(90deg, rgba(78, 149, 217, 0.45) 2px, transparent 2px);
  background-size: 60px 60px;
  background-position: center top;
  transform: rotateX(75deg);
  transform-origin: 50% 0%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
  animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
  0% {
    background-position-y: 0px;
  }

  100% {
    background-position-y: 600px;
  }
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

/* Massive Title matching the header's BETTERCORE branding */
.banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.9rem, 12vw, 28rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
  position: relative;
  z-index: 2;
  margin: 0;
  line-height: 1.1;
  user-select: none;

  /* Glowing text shadow matching header logo */
  text-shadow: 0 0 35px var(--color-accent-glow);
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

/* Pulsating Core Glow */
.banner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 25vh;
  background: radial-gradient(ellipse at center, rgba(78, 149, 217, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  animation: banner-pulse 8s infinite ease-in-out alternate;
}

@keyframes banner-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
  /* Trennung nach unten mit subtilem Glow, kein Rahmen an den Seiten */
  border-bottom: 1px solid rgba(78, 149, 217, 0.25);
  box-shadow: inset 0 -15px 15px -15px rgba(78, 149, 217, 0.4);
}

/* 1. CRT-Bildschirmeffekt (Scanlines & „Grainy“-Look) NUR im Hero-Bereich - dezent reduziert */
.hero-section::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* Sehr sanfte horizontale Scanlines + subtilster vertikaler RGB-Schimmer (reduzierte Deckkraft) */
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.10) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.015), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.015));
  z-index: 2;
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  /* Klicks gehen problemlos durch die Scanlines hindurch */
}

/* Background Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  filter: blur(160px);
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  top: -10%;
  left: 20%;
  animation: float 12s infinite ease-in-out alternate;
}

.glow-orb-2 {
  bottom: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  opacity: 0.12;
  animation: float 15s infinite ease-in-out alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 30px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 50px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

/* 3. Retro Monospace & 2. Leuchtender Arcade-Rahmen für das Hero-Badge */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  color: var(--color-accent-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  /* 2. Leuchtender Rahmen (Glow nach außen & nach innen) im Tron-Stil */
  box-shadow:
    0 0 18px rgba(78, 149, 217, 0.5),
    inset 0 0 10px rgba(78, 149, 217, 0.35);
  text-shadow: 0 0 8px var(--color-accent-light);
}

/* 5. Blinkender Arcade-Akzent auf dem Blitz-Symbol im Badge */
.badge-tag span:first-child {
  animation: arcade-blink 2s linear infinite;
}

@keyframes arcade-blink {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 10px #fff, 0 0 15px var(--color-accent);
  }

  50% {
    opacity: 0.35;
    text-shadow: none;
  }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  /* 2. Subtiler Neon-Glow für den Titel */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.hero-title .highlight {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
  /* Harmonischer, dezent-eleganter Tron Neon-Glow */
  text-shadow:
    0 0 15px rgba(78, 149, 217, 0.6),
    0 0 30px rgba(78, 149, 217, 0.35);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--color-text-primary);
  text-shadow: 0 0 12px rgba(78, 149, 217, 0.7);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* 2. Arcade Neon Glow für die Hero-Buttons (nur hier angewendet, andere Seitenbereiche unberührt) */
.hero-actions .btn-primary {
  box-shadow:
    0 0 22px rgba(78, 149, 217, 0.65),
    inset 0 0 10px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(123, 184, 245, 0.75);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.hero-actions .btn-primary:hover {
  box-shadow:
    0 0 22px rgba(78, 149, 217, 0.55),
    inset 0 0 12px rgba(255, 255, 255, 0.35);
}

.hero-actions .btn-secondary {
  border: 1px solid var(--color-accent);
  box-shadow:
    0 0 15px rgba(78, 149, 217, 0.3),
    inset 0 0 8px rgba(78, 149, 217, 0.2);
  text-shadow: 0 0 5px rgba(78, 149, 217, 0.4);
}

.hero-actions .btn-secondary:hover {
  box-shadow:
    0 0 25px rgba(78, 149, 217, 0.6),
    inset 0 0 12px rgba(78, 149, 217, 0.35);
  color: #fff;
  text-shadow: 0 0 10px var(--color-accent-light);
}

/* ==========================================================================
   Features Showcase Grid
   ========================================================================== */
.features-section {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
  overflow: hidden;
}

.section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* Harmonischer Tron Neon-Glow für Section Headings */
  text-shadow:
    0 0 15px rgba(78, 149, 217, 0.6),
    0 0 30px rgba(78, 149, 217, 0.35);
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Leuchtende Arcade-Rahmen für Features-Cards */
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(78, 149, 217, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  /* Innerer und äußerer Tron-Glow */
  box-shadow:
    0 0 20px rgba(78, 149, 217, 0.25),
    inset 0 0 15px rgba(78, 149, 217, 0.15);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow:
    0 0 35px rgba(78, 149, 217, 0.55),
    inset 0 0 20px rgba(78, 149, 217, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.8);
  background: rgba(18, 28, 44, 0.85);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Leuchtende Arcade-Icons */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow:
    0 0 15px rgba(78, 149, 217, 0.45),
    inset 0 0 8px rgba(78, 149, 217, 0.25);
  text-shadow: 0 0 8px var(--color-accent-light);
}

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
  /* Dezent scharfer Tron-Glow */
  text-shadow: 0 0 10px rgba(78, 149, 217, 0.45);
}

.feature-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-section .section-header {
  margin-bottom: 1.5rem;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 85vw);
  height: 200px;
  background: radial-gradient(circle, rgba(78, 149, 217, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.contact-content {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.contact-link {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
  display: inline-block;
  text-align: center;
  transition: var(--transition-smooth);
  text-shadow: 
    0 0 20px rgba(78, 149, 217, 0.5),
    0 0 40px rgba(78, 149, 217, 0.25);
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  word-break: break-word;
  max-width: 100%;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: var(--color-accent-light);
  box-shadow: 0 0 12px var(--color-accent-light);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:hover {
  color: var(--color-accent-light);
  text-shadow: 
    0 0 30px rgba(78, 149, 217, 0.8),
    0 0 60px rgba(78, 149, 217, 0.4);
  transform: scale(1.03);
}

.contact-link:hover::after {
  width: 100%;
}

@media (max-width: 576px) {
  .contact-section {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .contact-section .section-header {
    margin-bottom: 1rem;
  }

  .contact-content {
    margin-top: 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--color-accent);
  padding: 4rem 2.5rem 3rem;
  background: #000000;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow:
    0 -5px 25px rgba(78, 149, 217, 0.25),
    inset 0 20px 40px rgba(0, 0, 0, 0.85);
}

.main-footer::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.10) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.015), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.015));
  z-index: 0;
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-accent-light);
  text-shadow: 0 0 8px var(--color-accent);
}

.footer-link-divider,
.footer-sep {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Legal Pages Styling */
.legal-container {
  padding: 8rem 2.5rem 6rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.legal-article {
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-article h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.legal-article h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 600;
  color: var(--color-accent-light);
  margin: 2rem 0 1rem;
  text-shadow: 0 0 8px rgba(78, 149, 217, 0.3);
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.legal-article p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.legal-article a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.legal-article a:hover {
  color: var(--color-accent-light);
  text-shadow: 0 0 8px var(--color-accent);
}

@media (max-width: 768px) {
  .legal-container {
    padding: 7rem 1.5rem 5rem;
  }
}

@media (max-width: 576px) {
  .legal-container {
    padding: 6rem 1rem 4rem;
  }

  .legal-article h1 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }

  .legal-article h2 {
    margin: 1.5rem 0 0.75rem;
  }

  .legal-article p {
    margin-bottom: 1.25rem;
  }
}

/* Prevent scrolling when mobile menu is open */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  height: 100vh;
  position: relative;
}

/* ==========================================================================
   Hamburger Button (hidden on Desktop, visible on Mobile)
   ========================================================================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(78, 149, 217, 0.5);
}

/* Animated X when menu is open */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hamburger:hover .hamburger-line {
  box-shadow: 0 0 14px rgba(78, 149, 217, 0.85);
  background: var(--color-accent-light);
}

/* ==========================================================================
   Mobile Menu Overlay — Fullscreen premium Tron overlay
   ========================================================================== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000000;
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid rgba(78, 149, 217, 0.4);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(78, 149, 217, 0.15);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: auto;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-inner {
  width: 100%;
  max-width: 480px;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: auto 0;
}

.mobile-nav-links li {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 0.1s);
}

.mobile-nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.nav-num {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-accent);
  opacity: 0.6;
  text-shadow: 0 0 8px var(--color-accent);
}

.nav-text {
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  text-shadow: 0 0 20px rgba(78, 149, 217, 0.8);
}

.mobile-nav-link:hover .nav-text::after,
.mobile-nav-link.active .nav-text::after {
  width: 100%;
}

.mobile-menu-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 0.1s);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid rgba(78, 149, 217, 0.15);
  padding-top: 2rem;
}

.mobile-menu-overlay.active .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-lang-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-cta {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 0.9rem;
}

/* ==========================================================================
   Responsive Styles — Optimierte Navigation für kleine Screens & Mobile
   ========================================================================== */

/* 1. Tablets & mittlere Bildschirme (992px und kleiner) */
@media (max-width: 992px) {
  .nav-container {
    padding: 0.85rem 1.5rem;
  }

  .brand-text {
    font-size: 1.75rem;
  }

  .desktop-navigation {
    margin-left: 2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    min-width: 75px;
    font-size: 0.88rem;
  }

  #header-cta {
    min-width: 115px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
  }

  .banner {
    min-height: 50vh;
  }

  .banner-title {
    font-size: clamp(4.2rem, 11vw, 10rem);
    letter-spacing: 0.02em;
  }
}

/* 2. Mobile Breakpoint (768px und kleiner) — Hamburger Menü */
@media (max-width: 768px) {
  /* Show hamburger, hide inline desktop nav */
  .hamburger {
    display: flex;
  }

  .desktop-navigation {
    display: none;
  }

  .nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    position: relative;
  }

  .brand-logo {
    flex: 0 1 auto;
    justify-content: flex-start;
    z-index: 1100; /* Ensure logo is clickable above overlays */
  }

  .brand-text {
    font-size: 1.5rem;
  }

  /* Single-line header clearance */
  .banner {
    margin-top: 3.75rem;
    min-height: 42vh;
  }

  .hero-section {
    min-height: auto;
    padding: 5.5rem 1.5rem 4rem;
  }

  /* Centered footer layout on smaller screens */
  .main-footer {
    padding: 3rem 1.5rem 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-brand,
  .footer-copy {
    text-align: center;
    width: 100%;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* 3. Sehr kleine Smartphones (576px und kleiner) */
@media (max-width: 576px) {
  .brand-text {
    font-size: 1.35rem;
  }

  .nav-container {
    padding: 0.65rem 0.85rem;
  }

  .hero-section {
    padding: 4.8rem 1.25rem 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .banner {
    min-height: 38vh;
  }

  .banner-title {
    font-size: clamp(2.8rem, 9.5vw, 4.5rem);
    letter-spacing: 0.02em;
  }

  .main-footer {
    padding: 2.5rem 1rem 2rem;
  }

  .footer-content {
    gap: 1rem;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}