/* ═══════════════════════════════════════════════════════════
   1. DESIGN SYSTEM VARIABLES
   Flowbotics CSS Architecture v2026
   ═══════════════════════════════════════════════════════════ */
:root {
  /* ─── Brand Colors ─── */
  --color-primary: #4da8ff;
  --color-secondary: #00e5ff;
  --color-accent: #7a4fcc;
  --color-accent-dark: #3d1b8a;
  --color-accent-light: #8b5cf6;
  
  /* ─── Background Colors ─── */
  --color-bg-base: #0a0518;
  --color-bg-elevated: #150b33;
  --color-bg-highlight: radial-gradient(
    circle at top left,
    var(--color-accent) 0%,
    var(--color-accent-dark) 60%,
    #2a0f5c 100%
  );
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.05);
  --color-bg-card-dark: rgba(10, 5, 24, 0.7);
  --color-bg-card-dark-hover: rgba(10, 5, 24, 0.9);
  --color-bg-input: rgba(255, 255, 255, 0.08);
  --color-bg-input-focus: rgba(255, 255, 255, 0.12);
  --color-bg-footer: #050311;
  --color-bg-badge: rgba(77, 168, 255, 0.1);
  --color-bg-tag: rgba(10, 5, 24, 0.6);
  --color-bg-social: rgba(255, 255, 255, 0.05);
  
  /* ─── Text Colors ─── */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b0b0d0;
  --color-text-muted: #f0f0ff;
  --color-text-on-dark: #000000;
  
  /* ─── Border Colors ─── */
  --color-border-default: rgba(255, 255, 255, 0.1);
  --color-border-glow: rgba(77, 168, 255, 0.3);
  --color-border-light: rgba(255, 255, 255, 0.2);
  --color-border-accent: rgba(77, 168, 255, 0.3);
  --color-border-tag: rgba(77, 168, 255, 0.3);
  --color-border-card-icon: rgba(77, 168, 255, 0.2);
  --color-border-dashed: #e5e7eb;
  
  /* ─── Status Colors ─── */
  --color-success: #2ecc71;
  --color-success-bg: rgba(74, 222, 128, 0.1);
  --color-success-border: rgba(74, 222, 128, 0.3);
  --color-error: #ef4444;
  --color-gradient-teal: #06b6d4;
  --color-gradient-blue: #3b82f6;
  --color-case-badge-start: #00b09b;
  --color-case-badge-end: #96c93d;
  
  /* ─── Spacing (8px Grid) ─── */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-14: 3.5rem;   /* 56px */
  --space-15: 3.75rem;  /* 60px */
  --space-16: 4rem;     /* 64px */
  --space-18: 4.5rem;   /* 72px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-25: 6.25rem;  /* 100px */
  --space-30: 7.5rem;   /* 120px */
  --space-32: 8rem;     /* 128px */
  
  /* ─── Typography Scale ─── */
  --text-xs: 0.65rem;   /* ~10px */
  --text-sm: 0.75rem;   /* 12px */
  --text-base: 0.8rem;  /* ~13px */
  --text-md: 0.85rem;   /* ~14px */
  --text-body: 0.9rem;  /* ~14.4px */
  --text-rg: 0.95rem;   /* ~15px */
  --text-lg: 1rem;      /* 16px */
  --text-xl: 1.15rem;   /* ~18px */
  --text-2xl: 1.2rem;   /* ~19px */
  --text-3xl: 1.25rem;  /* 20px */
  --text-4xl: 1.5rem;   /* 24px */
  --text-5xl: 1.8rem;   /* ~29px */
  --text-6xl: 2.2rem;   /* ~35px */
  --text-7xl: 2.5rem;   /* 40px */
  --text-8xl: 3rem;     /* 48px */
  --text-9xl: 3.5rem;   /* 56px */
  
  /* ─── Border Radius ─── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 30px;
  --radius-4xl: 40px;
  --radius-5xl: 50px;
  --radius-full: 9999px;
  
  /* ─── Shadows ─── */
  --shadow-sm: 0 5px 20px rgba(255, 255, 255, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(61, 27, 138, 0.4);
  --shadow-glow-hover: 0 0 40px rgba(0, 229, 255, 0.6);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 30px 60px rgba(0, 0, 0, 0.4);
  --shadow-inner-glow: 0 0 20px rgba(77, 168, 255, 0.1);
  --shadow-icon-hover: 0 0 10px rgba(77, 168, 255, 0.5);
  
  /* ─── Transitions ─── */
  --transition-fast: 0.2s;
  --transition-base: 0.3s;
  --transition-slow: 0.5s;
  --transition-bounce: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* ─── Breakpoints (for reference in JS) ─── */
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 900px;
  --breakpoint-xl: 1200px;
  
  /* ─── Layout ─── */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1100px;
  --container-contact: 700px;
  
  /* ─── Line Heights ─── */
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.7;
  --leading-xl: 1.8;
  --leading-2xl: 1.9;
  
  /* ─── Letter Spacing ─── */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 1px;
  --tracking-wider: 1.5px;
  --tracking-widest: 2px;
  --tracking-ultra: 3px;
  
  /* ─── Legacy Compatibility (deprecated, use semantic names above) ─── */
  --fb-deep: var(--color-bg-base);
  --fb-purple: var(--color-accent-dark);
  --fb-purple-light: var(--color-accent);
  --fb-blue: var(--color-primary);
  --fb-cyan: var(--color-secondary);
  --text-main: var(--color-text-primary);
  --text-muted: var(--color-text-secondary);
  --text-on-colored: var(--color-text-muted);
  --bg-body: var(--color-bg-base);
  --border-glass: var(--color-border-default);
  --border-glow: var(--color-border-glow);
  --shadow-glow: var(--shadow-glow);
  --radius: var(--radius-2xl);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth;
}

/* Fallback for browsers without smooth scroll support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  line-height: var(--leading-loose);
  overflow-x: hidden;
  position: relative;
}

/* Background Pulse Animation */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: 
    radial-gradient(circle at 20% 50%, rgba(125, 95, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77, 168, 255, 0.05) 0%, transparent 50%);
  animation: bgPulse 10s ease-in-out infinite alternate;
}
@keyframes bgPulse { 0% { opacity: 0.6; } 100% { opacity: 1; } }

/* Noise Overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: var(--tracking-tight); margin-top: 0; line-height: var(--leading-snug); }
a { text-decoration: none; color: inherit; transition: var(--transition-base); }

/* ═══════════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); position: relative; z-index: 2; }

.section {
  padding: var(--space-25) 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section > .container { width: 100%; }

/* --- Section Variants --- */
.section-dark { background: transparent; }

.section-alt, 
.tech-stack-bar {
  position: relative;
  width: 100%;
  background: var(--color-bg-highlight);
  z-index: 1; 
  padding-top: var(--space-20);
  padding-bottom: var(--space-30);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 200px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 200px), transparent 100%);
}

/* Keine ::before Pseudo-Elemente mehr - direkter Hintergrund */

/* ═══════════════════════════════════════════════════════════
   5. NAVIGATION (Static - Onepager ohne Menü)
   ═══════════════════════════════════════════════════════════ */
.nav { 
  position: absolute; 
  top: 0; 
  width: 100%; 
  padding: var(--space-6) 0; 
  z-index: 100; 
}
.nav-inner { 
  display: flex; 
  justify-content: flex-start; /* Logo linksbündig */
  align-items: center; 
} 
.nav-logo-custom { height: 40px; width: auto; transition: var(--transition-base); }
.nav-logo-custom:hover { transform: scale(1.05); filter: drop-shadow(var(--shadow-icon-hover)); }

/* ═══════════════════════════════════════════════════════════
   6. HERO SECTION (FIX: HIGH END / SMALL TITLE)
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding-top: var(--space-20); 
  padding-bottom: var(--space-10);
  position: relative;
  background: radial-gradient(ellipse at 50% 20%, rgba(61, 27, 138, 0.4) 0%, transparent 60%);
}
.hero-content { 
  text-align: center; 
  max-width: var(--container-narrow); 
  margin: 0 auto; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Hero Badge - Viel Abstand */
.badge {
  display: inline-block; 
  padding: var(--space-2) var(--space-6); 
  margin-bottom: var(--space-20); 
  border: 1px solid var(--color-border-accent); 
  border-radius: var(--radius-full);
  background: var(--color-bg-badge); 
  color: var(--color-secondary);
  font-family: var(--font-mono); 
  font-size: var(--text-base); 
  font-weight: 700;
  letter-spacing: var(--tracking-widest); 
  text-transform: uppercase;
  backdrop-filter: blur(10px); 
  animation: float 6s ease-in-out infinite;
  align-self: center;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero Title: Klein & Dezent (Understatement) */
.hero h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem); 
  line-height: var(--leading-normal);
  margin-bottom: var(--space-10);
  text-shadow: var(--shadow-inner-glow);
}

.hero p {
  font-size: var(--text-xl); 
  color: var(--color-text-secondary); 
  line-height: var(--leading-xl); 
  margin-bottom: var(--space-20);
  max-width: var(--container-contact); 
  margin-left: auto; 
  margin-right: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%; animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-actions { display: flex; justify-content: center; gap: var(--space-5); margin-bottom: var(--space-20); }

/* Hero Stats (UPDATED: SEHR KOMPAKT) */
.hero-stats {
  display: flex; justify-content: center; gap: var(--space-10); 
  padding-top: var(--space-10); border-top: 1px solid var(--color-border-default);
}
.stat-num { 
  display: block; font-weight: 700;
  font-size: var(--text-7xl);
  color: var(--color-text-primary); margin-bottom: var(--space-1); 
}
.stat-label {
  font-family: var(--font-mono); 
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: var(--tracking-wider);
}
.stat-sep { width: 1px; height: 35px; background: var(--color-border-default); }

/* ═══════════════════════════════════════════════════════════
   7. BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-4) var(--space-8); border-radius: var(--radius-lg); border: 1px solid transparent;
  font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-wide);
  cursor: pointer; position: relative; z-index: 1; overflow: hidden; transition: var(--transition-base);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: var(--color-text-on-dark) !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); border: 1px solid rgba(255,255,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-5px); background: linear-gradient(135deg, var(--color-text-primary), var(--color-secondary));
  box-shadow: var(--shadow-glow-hover);
}
.btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--color-text-primary); border-color: var(--color-border-default);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15); border-color: var(--color-text-primary); transform: translateY(-5px);
}
.btn-full { width: 100%; margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════
   7.5 TRUSTED BY (Social Proof Bar)
   ═══════════════════════════════════════════════════════════ */
.trusted-by {
  padding: var(--space-10) 0;
  background: linear-gradient(180deg, rgba(10, 5, 24, 0) 0%, rgba(61, 27, 138, 0.1) 50%, rgba(10, 5, 24, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.trusted-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-6);
}
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}
.trusted-logo {
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}
.trusted-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-3px);
}
.trusted-logo.featured {
  opacity: 0.9;
  filter: grayscale(0%);
}
.trusted-logo.featured:hover {
  opacity: 1;
}
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ═══════════════════════════════════════════════════════════
   8. TECH STACK (DESKTOP DEFAULT)
   ═══════════════════════════════════════════════════════════ */
.tech-stack-bar::after {
  content: ""; position: absolute; inset: 0; z-index: -1; 
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; mix-blend-mode: overlay;
}

/* WICHTIG: Flex-Direction ist hier Standard (Row/Zeile) */
.stack-row { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: var(--space-5); 
  flex-wrap: wrap; 
  gap: var(--space-5); 
}

/* WICHTIG: Hier definieren wir die Breite und Rechtsbündigkeit für Desktop */
.stack-category {
  min-width: 160px;
  text-align: right; 
  font-family: var(--font-mono);
  font-size: var(--text-sm); 
  color: var(--color-secondary); 
  font-weight: 700;
  letter-spacing: var(--tracking-wider); 
  text-transform: uppercase;
}

.tag-list { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); }

.tech-tag {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--color-bg-tag);
  border: 1px solid var(--color-border-default); color: var(--color-text-primary); font-size: var(--text-body);
  font-weight: 600; backdrop-filter: blur(5px); transition: var(--transition-base);
}
.tag-ops { border-color: var(--color-border-tag); color: var(--color-secondary); }
.tech-tag:hover {
  background: var(--color-text-primary); color: var(--color-text-on-dark); transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════
   9. CARDS & GRID SYSTEMS
   ═══════════════════════════════════════════════════════════ */
.section-label {
  text-align: center; margin-bottom: var(--space-15); font-family: var(--font-mono);
  color: var(--color-secondary); font-size: var(--text-body); text-transform: uppercase; letter-spacing: var(--tracking-ultra);
}
.section-header { text-align: center; max-width: var(--container-narrow); margin: 0 auto var(--space-20); }
.section-header h2 { font-size: var(--text-8xl); margin-bottom: var(--space-5); color: var(--color-text-primary); text-shadow: 0 0 30px rgba(0,0,0,0.3); }
.section-header p { font-size: var(--text-2xl); color: var(--color-text-muted); }

/* Expertise Grid */
.tech-grid { 
  display: grid; 
  gap: var(--space-6); 
  grid-template-columns: 1fr; 
}
@media (min-width: 768px) {
  .tech-grid { grid-template-columns: 1fr 1fr; } 
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-20); align-items: center; }

/* Sprints Grid */
.bento-grid { 
  display: grid; 
  gap: var(--space-6); 
  justify-content: center;
  max-width: var(--container-wide);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Card Styles --- */
/* Style A: Expertise Cards */
.tech-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1); 
  padding: var(--space-10); border-radius: var(--radius-2xl);
  backdrop-filter: blur(10px); transition: var(--transition-base); 
  position: relative; overflow: hidden;
}
.tech-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-gradient-teal), var(--color-gradient-blue)); opacity: 0.7;
}
.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 var(--space-3) var(--space-6) -10px rgba(6, 182, 212, 0.2);
}

/* Style B: Sprint Cards */
.card {
  background: var(--color-bg-card-dark); border: 1px solid var(--color-border-default);
  padding: var(--space-12); border-radius: var(--radius-2xl); transition: var(--transition-base);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; height: 100%;
}
.card-security { border-top: 4px solid var(--color-secondary); }
.card-workplace { border-top: 4px solid var(--color-primary); }
.card-auto { border-top: 4px solid var(--color-accent); }
.card-migration { border-top: 4px solid var(--color-accent-light); }

.card:hover {
  transform: translateY(-10px); background: var(--color-bg-card-dark-hover);
  border-color: var(--color-primary); box-shadow: var(--shadow-card-hover);
}
.contact-card {
  background: linear-gradient(135deg, rgba(61, 27, 138, 0.3), rgba(77, 168, 255, 0.05));
  border: 1px solid var(--color-border-glow); padding: var(--space-12); border-radius: var(--radius-2xl);
  backdrop-filter: blur(10px); transition: var(--transition-base); box-shadow: var(--shadow-xl);
}

/* Content inside Cards */
.tech-head {
  display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-default); color: var(--color-text-primary); font-weight: 800; font-size: var(--text-2xl);
}
.tech-head::before { content: "►"; color: var(--color-secondary); font-size: var(--text-lg); }
.tech-list, .check-list { list-style: none; padding: 0; color: var(--color-text-secondary); }
.tech-list li, .check-list li { display: flex; align-items: center; margin-bottom: var(--space-3); font-size: var(--text-rg); }
.tech-list li::before { content: "•"; color: var(--color-primary); margin-right: var(--space-3); font-size: 1.5rem; line-height: 0; }
.check-list li::before { content: "✓"; color: var(--color-success); font-weight: 800; margin-right: var(--space-3); }

/* Deliverables Style */
.deliverables { 
  margin-top: var(--space-3); padding-top: var(--space-3); 
  border-top: 1px dashed var(--color-border-dashed); 
  font-size: var(--text-body); color: var(--color-text-secondary); line-height: var(--leading-relaxed);
}
.deliverables strong { color: var(--color-text-primary); display: block; margin-bottom: var(--space-1); font-weight: 600; }

.card-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-6); border-radius: var(--radius-xl); border: 1px solid var(--color-border-card-icon);
  background: rgba(77, 168, 255, 0.1); color: var(--color-primary); font-size: var(--text-4xl); transition: var(--transition-base);
}
.card:hover .card-icon { transform: rotate(10deg) scale(1.1); background: var(--color-primary); color: var(--color-text-on-dark); }
.card h3 { color: var(--color-text-primary); font-size: var(--text-4xl); margin-bottom: var(--space-3); }
.card p { color: var(--color-text-secondary); font-size: var(--text-lg); margin-bottom: var(--space-6); flex-grow: 1; }

/* ═══════════════════════════════════════════════════════════
   10. PROFILE & CERTIFICATES (CLEAN & LUXURY STYLE)
   ═══════════════════════════════════════════════════════════ */

/* Grid mit mehr Luft (Whitespace) */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: var(--space-30);
    align-items: center; 
}

/* Die Karte selbst - transparenter & edler */
.visual-inner {
  position: relative; 
  background: rgba(10, 5, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-4xl);
  padding: var(--space-20) var(--space-12);
  text-align: center;
  box-shadow: 0 var(--space-8) var(--space-20) rgba(0,0,0,0.4);
  transition: var(--transition-base);
}

.visual-inner:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 var(--space-10) var(--space-25) rgba(61, 27, 138, 0.5);
}

/* Profilbild */
.profile-img {
  width: 250px; 
  height: 250px; 
  border-radius: 50%; 
  object-fit: cover;
  border: 3px solid var(--color-primary); 
  margin-bottom: var(--space-10);
  position: relative; 
  z-index: 1; 
  box-shadow: 0 var(--space-4) var(--space-12) rgba(0,0,0,0.6);
  background-color: var(--color-text-on-dark); 
}

/* Badges */
.cert-badge {
  position: absolute; 
  width: 125px !important; 
  height: 125px !important;
  border-radius: 50%; 
  background: var(--color-bg-base); 
  border: 1px solid var(--color-border-glow);
  padding: var(--space-1); 
  z-index: 2; 
  box-shadow: 0 var(--space-2) var(--space-5) rgba(0,0,0,0.7);
  animation: floatBadge 6s ease-in-out infinite;
}

@keyframes floatBadge { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-12px); }
}

/* Positionen mit mehr Abstand zum Kopf */
.badge-left-top { top: 50px; left: 10px; animation-delay: 0s; }
.badge-right-top { top: 20px; right: 10px; animation-delay: 1.5s; }
.badge-right-bottom { top: 160px; right: 20px; animation-delay: 3s; }

/* Text Styles */
.visual-text { position: relative; z-index: 3; color: var(--color-text-primary); }
.code-badge { font-family: var(--font-mono); color: var(--color-secondary); font-weight: 700; letter-spacing: var(--tracking-widest); }

/* Headline Links */
.about-content h2 { 
  font-size: var(--text-9xl); 
  font-weight: 800; 
  color: var(--color-text-primary); 
  line-height: var(--leading-tight); 
  margin-bottom: var(--space-6); 
  letter-spacing: var(--tracking-tight); 
  text-transform: none; 
}
.about-content p { 
    font-size: var(--text-2xl); 
    line-height: var(--leading-loose); 
    color: var(--color-text-muted); 
}
/* ═══════════════════════════════════════════════════════════
   11. CASE STUDY & CONTACT
   ═══════════════════════════════════════════════════════════ */
.case-card {
  background: linear-gradient(135deg, var(--color-bg-elevated), var(--color-bg-base));
  border: 1px solid var(--color-border-default); border-radius: var(--radius-3xl); overflow: hidden;
  max-width: var(--container-wide); margin: 0 auto; box-shadow: var(--shadow-2xl);
}
.case-header { padding: var(--space-12); border-bottom: 1px solid var(--color-border-default); background: rgba(255,255,255,0.02); }
.badge-case { background: linear-gradient(135deg, var(--color-case-badge-start), var(--color-case-badge-end)); color: var(--color-text-on-dark); font-weight: 800; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--text-base); }
.client-logo-img { height: 45px; background: var(--color-text-primary); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }

/* Saubere Spaltenaufteilung */
.case-body { display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .case-body { flex-direction: row; }
  .case-main { flex: 3; border-right: 1px solid var(--color-border-default); }
  .case-details { flex: 2; }
}
.case-main { padding: var(--space-12); }
.case-details { background: rgba(0,0,0,0.3); padding: var(--space-12); backdrop-filter: blur(10px); }

/* Case Study Text Spacing */
.case-main h4 { 
  margin-top: var(--space-12); 
  margin-bottom: var(--space-3); 
  color: var(--color-text-primary); font-size: var(--text-2xl);
}
.case-main h4:first-of-type { margin-top: 0; }
.case-main p { 
  margin-bottom: 0; 
  line-height: var(--leading-2xl); 
  color: var(--color-text-secondary); 
}

.tech-stack-mini { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-6); }

/* Liste sauber eingerückt */
.check-list-sm { list-style: none; padding: 0; margin: 0; }
.check-list-sm li { 
  position: relative; padding-left: var(--space-6); margin-bottom: var(--space-3); 
  color: var(--color-text-secondary); line-height: var(--leading-relaxed);
}
.check-list-sm li::before { 
  content: "▶"; color: var(--color-success); position: absolute; left: 0; top: 3px; font-size: var(--text-sm); 
}

/* Contact Form Spacing */
.contact-container { max-width: var(--container-contact); }
.contact-card h2 { color: var(--color-text-primary); font-weight: 900; margin-bottom: var(--space-3); }

/* Form Group Spacing */
.form-group { margin-bottom: var(--space-6); }
.form-group label { 
  color: var(--color-primary); font-family: var(--font-mono); 
  font-size: var(--text-md); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wider); 
  display: block; margin-bottom: var(--space-2); 
}
.form-group input, .form-group textarea { 
  width: 100%; background: var(--color-bg-input); 
  border: 1px solid var(--color-border-light); 
  padding: var(--space-4); border-radius: var(--radius-lg); 
  color: var(--color-text-primary); font-size: var(--text-lg); transition: var(--transition-base); 
}
.form-group input:focus, .form-group textarea:focus { 
  outline: none; border-color: var(--color-primary); background: var(--color-bg-input-focus); 
  box-shadow: 0 0 var(--space-3) rgba(77, 168, 255, 0.3); 
}

/* ═══════════════════════════════════════════════════════════
   12. FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer { background: var(--color-bg-footer); border-top: 1px solid var(--color-border-default); padding: var(--space-15) 0; font-size: var(--text-body); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-6); }
.footer-links { display: flex; align-items: center; gap: var(--space-10); }
.footer-links a:hover { color: var(--color-primary); }
.social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--color-bg-social); border-radius: 50%; transition: var(--transition-base); color: var(--color-text-primary); }
.social-icon:hover { background: var(--color-primary); color: #ffffff; transform: translateY(-5px); }
.social-icon:hover svg { fill: #ffffff; }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* ═══════════════════════════════════════════════════════════
   13. RESPONSIVE IMPORT
   Mobile Styles sind in mobile.css ausgelagert
   ═══════════════════════════════════════════════════════════ */
@import url('mobile.css');

/* ═══════════════════════════════════════════════════════════
   14. MOBILE STICKY CTA (Dezent)
   ═══════════════════════════════════════════════════════════ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

.btn-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.btn-mobile svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.mobile-sticky-cta {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
}

/* ═══════════════════════════════════════════════════════════
   15. BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-text-primary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* On mobile, position next to the CTA button */
@media (max-width: 768px) {
  .back-to-top.visible {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
  }
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   15. ENHANCED ANIMATIONS & INTERACTIONS
   ═══════════════════════════════════════════════════════════ */

/* Scroll-Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for cards */
.reveal-delay-1 { transition-delay: 0ms; }
.reveal-delay-2 { transition-delay: 100ms; }
.reveal-delay-3 { transition-delay: 200ms; }
.reveal-delay-4 { transition-delay: 300ms; }

/* Enhanced Card Hover with Border Glow */
.card {
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: 1;
}

/* Button Glow Pulse on Hover */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); }
  50% { box-shadow: 0 0 35px rgba(0, 229, 255, 0.6); }
}
.btn-primary:hover {
  animation: btnPulse 2s ease-in-out infinite;
}

/* Cursor Tracking Glow in Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-cursor-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 168, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  z-index: 0;
}
.hero:hover .hero-cursor-glow {
  opacity: 1;
}