/* ════════════════════════════════════════════════════════════
   WEBALCHEMY 2.0 – PREMIUM DESIGN SYSTEM
   ════════════════════════════════════════════════════════════ */

:root {
  /* Colors: Dark + Grau */
  --bg-primary: #0c152a;
  /* Hellere Sekundär- und Tertiärfarben für eine seriösere Optik */
  /* Slightly lighter blues for secondary and tertiary backgrounds to introduce more grey‑blue contrast */
  --bg-secondary: #1a2d4b;
  --bg-tertiary: #233961;
  
  --text-primary: #e5f0fa;
  --text-secondary: #a6b5cc;
  --text-muted: #7c8ba1;
  
  --line: rgba(229, 240, 250, 0.08);
  --line-hover: rgba(229, 240, 250, 0.15);
  
  /* Akzent: Cyan + Pink – neues NobleFrame Branding */
  --cyan: #00d4ff;
  --cyan-light: #5bd6ff;
  --cyan-glow: rgba(0, 212, 255, 0.3);
  --cyan-glow-light: rgba(0, 212, 255, 0.15);
  /* Pinker Gegenpol für den Verlauf */
  --pink: #ff006e;
  --gradient: linear-gradient(135deg, var(--cyan), var(--pink));
  
  --gray-accent: #556983;
  --gray-light: #657793;
  
  /* Shadows + Glow */
  /* Shadows and glows updated to reflect the cyan NobleFrame branding */
  --shadow-sm: 0 4px 12px rgba(0, 212, 255, 0.08);
  --shadow-md: 0 12px 36px rgba(0, 212, 255, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 212, 255, 0.16);
  --glow: 0 0 20px rgba(0, 212, 255, 0.25);
  --glow-intense: 0 0 40px rgba(0, 212, 255, 0.35);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Additional brand variables */
  --red: #ff4d4d;
  --cyan-rgb: 0, 212, 255;
  --pink-rgb: 255, 0, 110;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Monaco', 'Courier New', monospace;
}

/* Light theme variables: applied when data-theme="light" is present on the html element */
:root[data-theme="light"] {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ebeff5;
  --bg-tertiary: #e3eaf3;
  --text-primary: #0c152a;
  --text-secondary: #344060;
  --text-muted: #667799;
  --line: rgba(12, 21, 42, 0.08);
  --line-hover: rgba(12, 21, 42, 0.12);
  --shadow-sm: 0 4px 12px rgba(0, 212, 255, 0.04);
  --shadow-md: 0 12px 36px rgba(0, 212, 255, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 212, 255, 0.12);
  --glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --glow-intense: 0 0 40px rgba(0, 212, 255, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

/* Animations & Background */
@keyframes fall {
  from { transform: translateY(-100px); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  to { transform: translateY(100vh); opacity: 0; }
}

@keyframes logoRotate {
  0%, 100% { transform: rotateZ(0deg) rotateX(0deg); }
  25% { transform: rotateZ(5deg) rotateX(2deg); }
  50% { transform: rotateZ(-5deg) rotateX(-2deg); }
  75% { transform: rotateZ(3deg) rotateX(1deg); }
}

@keyframes logoPulse {
  0%, 100% { box-shadow: var(--glow-intense), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 30px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: var(--glow-intense), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.6); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Additional animations for the NobleFrame logo */
@keyframes rotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseBig {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.95);
    filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.6));
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(255, 0, 110, 1));
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: var(--glow); }
  50% { box-shadow: var(--glow-intense); }
}

@keyframes shimmer {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(50%, 50%); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.bg-animate {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.code-line {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  /* Verwende einen Farbverlauf statt fester Farbe */
  white-space: nowrap;
  animation: fall linear infinite;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.18;
}

.code-line:nth-child(1) { left: 2%; animation-duration: 8s; animation-delay: 0s; }
.code-line:nth-child(2) { left: 8%; animation-duration: 10s; animation-delay: 1s; }
.code-line:nth-child(3) { left: 14%; animation-duration: 12s; animation-delay: 2s; }
.code-line:nth-child(4) { left: 20%; animation-duration: 9s; animation-delay: 0.5s; }
.code-line:nth-child(5) { left: 26%; animation-duration: 11s; animation-delay: 1.5s; }
.code-line:nth-child(6) { left: 32%; animation-duration: 10s; animation-delay: 2.5s; }
.code-line:nth-child(7) { left: 38%; animation-duration: 13s; animation-delay: 0s; }
.code-line:nth-child(8) { left: 44%; animation-duration: 9s; animation-delay: 1s; }
.code-line:nth-child(9) { left: 50%; animation-duration: 11s; animation-delay: 2s; }
.code-line:nth-child(10) { left: 56%; animation-duration: 10s; animation-delay: 0.5s; }
.code-line:nth-child(11) { left: 62%; animation-duration: 12s; animation-delay: 1.5s; }
.code-line:nth-child(12) { left: 68%; animation-duration: 9s; animation-delay: 2s; }
.code-line:nth-child(13) { left: 74%; animation-duration: 11s; animation-delay: 0s; }
.code-line:nth-child(14) { left: 80%; animation-duration: 10s; animation-delay: 1s; }
.code-line:nth-child(15) { left: 86%; animation-duration: 13s; animation-delay: 1.5s; }
.code-line:nth-child(16) { left: 92%; animation-duration: 10s; animation-delay: 2.5s; }
.code-line:nth-child(17) { left: 5%; animation-duration: 11s; animation-delay: 0.8s; }
.code-line:nth-child(18) { left: 35%; animation-duration: 12s; animation-delay: 1.3s; }
.code-line:nth-child(19) { left: 65%; animation-duration: 9s; animation-delay: 1.8s; }
.code-line:nth-child(20) { left: 95%; animation-duration: 10s; animation-delay: 0.3s; }

/* Additional code-line slots for more intense animation */
.code-line:nth-child(21) { left: 3%; animation-duration: 9s; animation-delay: 0.7s; }
.code-line:nth-child(22) { left: 9%; animation-duration: 11s; animation-delay: 1.8s; }
.code-line:nth-child(23) { left: 15%; animation-duration: 10s; animation-delay: 2.6s; }
.code-line:nth-child(24) { left: 21%; animation-duration: 13s; animation-delay: 0.2s; }
.code-line:nth-child(25) { left: 27%; animation-duration: 8s; animation-delay: 1.2s; }
.code-line:nth-child(26) { left: 33%; animation-duration: 12s; animation-delay: 2.1s; }
.code-line:nth-child(27) { left: 39%; animation-duration: 9s; animation-delay: 0.9s; }
.code-line:nth-child(28) { left: 45%; animation-duration: 11s; animation-delay: 1.6s; }
.code-line:nth-child(29) { left: 51%; animation-duration: 10s; animation-delay: 2.7s; }
.code-line:nth-child(30) { left: 57%; animation-duration: 12s; animation-delay: 0.4s; }
.code-line:nth-child(31) { left: 63%; animation-duration: 9s; animation-delay: 1.4s; }
.code-line:nth-child(32) { left: 69%; animation-duration: 13s; animation-delay: 2.5s; }
.code-line:nth-child(33) { left: 75%; animation-duration: 10s; animation-delay: 0.6s; }
.code-line:nth-child(34) { left: 81%; animation-duration: 11s; animation-delay: 1.7s; }
.code-line:nth-child(35) { left: 87%; animation-duration: 8s; animation-delay: 2.3s; }
.code-line:nth-child(36) { left: 93%; animation-duration: 12s; animation-delay: 0.9s; }
.code-line:nth-child(37) { left: 7%; animation-duration: 10s; animation-delay: 1.5s; }
.code-line:nth-child(38) { left: 29%; animation-duration: 9s; animation-delay: 2.9s; }
.code-line:nth-child(39) { left: 55%; animation-duration: 13s; animation-delay: 1.1s; }
.code-line:nth-child(40) { left: 83%; animation-duration: 10s; animation-delay: 0.8s; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Purple-tinted glows framing the sides */
    radial-gradient(800px 400px at 10% 15%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
    radial-gradient(800px 400px at 90% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-primary) 0%, rgba(0, 212, 255, 0.02) 100%);
}

/* Floating bubbles and cursor glow for additional ambience */
@keyframes float {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate3d(30px, -80px, 0) scale(1.2); opacity: 0.7; }
  100% { transform: translate3d(-30px, -160px, 0) scale(1); opacity: 0.3; }
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.2), rgba(var(--pink-rgb), 0.15));
  pointer-events: none;
  filter: blur(20px);
}

.bubble-1 { width: 300px; height: 300px; top: 10%; left: 5%; animation: float 28s linear infinite; }
.bubble-2 { width: 220px; height: 220px; top: 60%; left: 70%; animation: float 24s linear infinite; }
.bubble-3 { width: 280px; height: 280px; top: 30%; left: 80%; animation: float 32s linear infinite; }
.bubble-4 { width: 260px; height: 260px; top: 80%; left: 15%; animation: float 26s linear infinite; }
.bubble-5 { width: 200px; height: 200px; top: 45%; left: 50%; animation: float 30s linear infinite; }
.bubble-6 { width: 350px; height: 350px; top: 5%; left: 90%; animation: float 34s linear infinite; }

.cursor-glow {
  position: fixed;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.4) 0%, rgba(var(--pink-rgb), 0.4) 100%);
  mix-blend-mode: screen;
  filter: blur(60px);
  transform: translate(-50%, -50%);
  z-index: 9;
  opacity: 0.7;
}

.content {
  position: relative;
  z-index: 10;
}

/* Navigation */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 20, 25, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover { transform: scale(1.05); }

.mark {
  /* Logo container simplified: remove the outer frame/background and animations */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--bg-primary);
  position: relative;
  overflow: visible;
}

.mark::before {
  /* Hide the rotating conic gradient when the frame is removed */
  display: none;
}

.mark > * { position: relative; z-index: 1; }

.brand-text {
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--cyan-light);
  text-transform: uppercase;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text-primary);
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.links a {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.links a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.links a:hover::before { opacity: 1; }

.links a[aria-current="page"] {
  color: var(--cyan-light);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: var(--glow);
}

.cta-btn {
  margin-left: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
  color: var(--cyan);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glow);
}

.cta-btn:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(141, 85, 255, 0.3), rgba(141, 85, 255, 0.1));
  box-shadow: var(--glow-intense);
  transform: translateY(-2px);
}

/* Theme toggle button */
.theme-toggle {
  margin-left: 12px;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--cyan);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover {
  transform: scale(1.2);
  color: var(--pink);
}

/* Main Content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.6s ease; }

/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 217, 255, 0.3);
  background: rgba(0, 217, 255, 0.08);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 16px;
  animation: slideDown 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 16px 0 24px;
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 0.8s ease 0.2s backwards;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeIn 0.8s ease 0.4s backwards;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease 0.6s backwards;
}

.btn {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: none;
  font-size: 14px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  /* Primär-Buttons nutzen den neuen Violett‑Pink‑Verlauf */
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: var(--bg-primary);
  box-shadow: var(--glow), 0 0 40px rgba(141, 85, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-intense), 0 0 60px rgba(141, 85, 255, 0.3);
}

.btn-secondary {
  border: 1.5px solid rgba(141, 85, 255, 0.4);
  color: var(--cyan);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(141, 85, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 48px 0;
  animation: fadeIn 0.8s ease 0.8s backwards;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(26, 31, 46, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 80%);
  animation: shimmer 3s ease-in-out infinite;
}

.stat-card:hover {
  border-color: rgba(0, 217, 255, 0.5);
  background: rgba(26, 31, 46, 0.8);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.stat-card > * { position: relative; z-index: 1; }

.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--cyan-light);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Section Header */
.section-head {
  padding: 40px 0 24px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  /* Lighter, semi‑transparent gradient for cards */
  /* Lighter card backgrounds for improved contrast on the grey‑blue palette */
  background: linear-gradient(135deg, rgba(50, 60, 90, 0.5), rgba(50, 60, 90, 0.3));
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.6s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(141, 85, 255, 0.1), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover {
  border-color: rgba(141, 85, 255, 0.5);
  background: linear-gradient(135deg, rgba(40, 55, 90, 0.85), rgba(40, 55, 90, 0.6));
  box-shadow: var(--shadow-lg), var(--glow);
  transform: translateY(-12px);
}

.card > * { position: relative; z-index: 1; }

.card-icon {
  /* Icon container for cards: size reserved for custom code icons */
  font-size: 0; /* Reset so the span sets the size */
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code icon: used for tool, labs, competence and portfolio cards in place of emojis. */
.code-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: codeIconPulse 4s ease-in-out infinite;
}

@keyframes codeIconPulse {
  0%, 100% {
    opacity: 0.8;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 217, 255, 0.12);
  color: var(--cyan-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 32px 0 60px;
}

.team-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.7), rgba(26, 31, 46, 0.4));
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.6s ease backwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(141, 85, 255, 0.3), rgba(141, 85, 255, 0.1));
  border: 2px solid rgba(141, 85, 255, 0.4);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 36px;
  font-weight: 900;
  color: var(--cyan-light);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-card:hover {
  border-color: rgba(141, 85, 255, 0.5);
  background: linear-gradient(135deg, rgba(40, 52, 77, 0.9), rgba(40, 52, 77, 0.6));
  box-shadow: var(--shadow-lg), var(--glow);
  transform: translateY(-12px);
}

.team-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.team-role {
  color: var(--cyan-light);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Red tag to highlight management members (Geschäftsführung) */
.team-tag {
  display: inline-block;
  background: rgba(255, 77, 77, 0.08);
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.team-details {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-item {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.team-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: 16px;
}

.social-link:hover {
  border-color: rgba(141, 85, 255, 0.4);
  color: var(--cyan);
  background: rgba(141, 85, 255, 0.1);
  box-shadow: var(--glow);
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 32px 0 60px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.6), rgba(26, 31, 46, 0.3));
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  cursor: pointer;
  animation: cardReveal 0.6s ease backwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }

.portfolio-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.2), rgba(var(--cyan-rgb), 0.05));
  display: grid;
  place-items: center;
  font-size: 48px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Increase code icon size inside portfolio images for better visual weight */
.portfolio-image .code-icon {
  font-size: 46px;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--cyan-rgb), 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image::before { opacity: 1; }

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 28px;
}

.portfolio-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 217, 255, 0.12);
  color: var(--cyan-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.portfolio-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.portfolio-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.portfolio-metrics {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metric {
  flex: 1;
}

.metric-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--cyan-light);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-item:hover {
  border-color: rgba(0, 217, 255, 0.5);
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.8), rgba(26, 31, 46, 0.5));
  box-shadow: var(--shadow-lg), var(--glow);
  transform: translateY(-12px);
}

/* Competence Section */
.competence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.competence-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.6), rgba(26, 31, 46, 0.3));
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.6s ease backwards;
  cursor: pointer;
}

.competence-card:nth-child(1) { animation-delay: 0.1s; }
.competence-card:nth-child(2) { animation-delay: 0.2s; }
.competence-card:nth-child(3) { animation-delay: 0.3s; }
.competence-card:nth-child(4) { animation-delay: 0.4s; }
.competence-card:nth-child(5) { animation-delay: 0.5s; }
.competence-card:nth-child(6) { animation-delay: 0.6s; }

.competence-card.expanded {
  grid-column: 1 / -1;
  padding: 40px;
}

.competence-card.expanded .competence-expanded {
  max-height: 500px;
  opacity: 1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.competence-expanded {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.competence-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.detail-box {
  padding: 20px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: var(--radius-md);
}

.detail-box h4 {
  color: var(--cyan-light);
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-box ul {
  display: grid;
  gap: 8px;
}

.detail-box li {
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-box li::before {
  content: '→';
  color: var(--cyan);
  font-weight: bold;
}

.competence-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.competence-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.competence-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.competence-features {
  display: grid;
  gap: 8px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.feature::before {
  content: '✓';
  color: var(--cyan-light);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.competence-card:hover {
  border-color: rgba(0, 217, 255, 0.5);
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.8), rgba(26, 31, 46, 0.5));
  box-shadow: var(--shadow-lg), var(--glow);
  transform: translateY(-12px);
}

/* Pricing Section */
.pricing-note {
  text-align: center;
  padding: 32px;
  border: 2px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(0, 217, 255, 0.05);
  margin: 32px 0;
}

.pricing-note h3 {
  font-size: 20px;
  color: var(--cyan-light);
  margin-bottom: 12px;
}

.pricing-note p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 32px auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.6), rgba(26, 31, 46, 0.3));
  backdrop-filter: blur(10px);
}

/* Newsletter Form: share styling with contact form for a cohesive design */
.newsletter-form {
  max-width: 100%;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.6), rgba(26, 31, 46, 0.3));
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(26, 31, 46, 0.5);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(0, 217, 255, 0.6);
  background: rgba(26, 31, 46, 0.8);
  box-shadow: var(--glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--cyan);
}

.form-checkbox label {
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  border-color: rgba(0, 217, 255, 0.4);
  background: rgba(0, 217, 255, 0.1);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  margin-top: 80px;
  padding: 60px 20px 40px;
  border-top: 1px solid var(--line);
  background: rgba(15, 20, 25, 0.5);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  max-width: 600px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  color: var(--cyan-light);
  margin: 0;
}

.modal-close {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.modal-body {
  color: var(--text-secondary);
  line-height: 1.8;
}

.modal-body h3 {
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-body ul {
  margin-left: 20px;
  display: grid;
  gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 12px 16px;
  }

  .brand {
    min-width: auto;
  }

  .links {
    display: none;
    position: fixed;
    top: 60px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px;
    z-index: 40;
    box-shadow: var(--shadow-lg);
  }

  .links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cta-btn {
    margin-left: 0;
  }

  .grid,
  .team-grid,
  .portfolio-grid,
  .competence-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
