/* ===========================
   CSS Custom Properties
=========================== */
:root {
  --bg-primary: #030712;
  --bg-secondary: #0a0f1e;
  --bg-card: rgba(10, 20, 40, 0.6);
  --accent-cyan: #00d4ff;
  --accent-purple: #7c3aed;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --text-primary: #f0f6ff;
  --text-secondary: #8892a4;
  --text-muted: #4a5568;
  --border: rgba(0, 212, 255, 0.12);
  --border-hover: rgba(0, 212, 255, 0.35);
  --glow-cyan: rgba(0, 212, 255, 0.15);
  --glow-purple: rgba(124, 58, 237, 0.15);
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-height: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent-cyan) var(--bg-secondary); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 2px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===========================
   Particle Canvas
=========================== */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===========================
   Grid Overlay
=========================== */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ===========================
   Navigation
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(3, 7, 18, 0.92);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--accent-cyan); }
.logo-name { color: var(--text-primary); margin: 0 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--accent-cyan);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.cta-nav {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan) !important;
  border-radius: var(--radius-sm);
}
.cta-nav:hover { background: rgba(0, 212, 255, 0.2); }
.cta-nav::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Sections Base
=========================== */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(20px, 8vw, 120px);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Hero Section
=========================== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: calc(var(--nav-height) + 40px);
  max-width: 1400px;
}

.hero-content { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.07);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title { margin-bottom: 20px; }
.hero-greeting {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.hero-name {
  display: block;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--accent-cyan);
  margin-bottom: 16px;
  min-height: 2em;
}
.type-cursor::after {
  content: '|';
  animation: blink 0.8s infinite;
  margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
  padding: 14px 32px;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--glow-cyan);
  transform: translateY(-2px);
}

/* Portrait */
.hero-portrait-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 28px;
}
.hero-portrait-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink), var(--accent-cyan));
  animation: portrait-ring-spin 6s linear infinite;
  z-index: 0;
}
.hero-portrait-wrap::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-primary);
  z-index: 1;
}
.hero-portrait-img {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 2;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.3);
}
@keyframes portrait-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Code Window */
.hero-visual { display: flex; flex-direction: column; gap: 24px; }

.code-window {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.window-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  flex: 1;
  text-align: center;
}
.code-content { padding: 20px 24px; overflow-x: auto; }
.code-content code { display: block; white-space: pre; }
.kw { color: #c792ea; }
.cl { color: #82aaff; }
.st { color: #c3e88d; }
.nm { color: #f78c6c; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: var(--accent-cyan); transform: translateY(-3px); }
.stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.72rem; color: var(--text-secondary); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===========================
   Expertise Section
=========================== */
#expertise { background: rgba(10, 15, 35, 0.5); }
#expertise::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.expertise-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.expertise-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}
.expertise-card:hover .card-glow { opacity: 1; }

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-cyan), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.card-icon svg { width: 28px; height: 28px; }

.expertise-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.expertise-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Skills */
.skills-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(10px);
}
.skills-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.skill-pct { color: var(--accent-cyan); font-family: var(--font-mono); font-weight: 500; }
.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ===========================
   Projects Section
=========================== */
#projekte {
  position: relative;
}

.projects-list { display: flex; flex-direction: column; gap: 24px; }

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.project-card:hover .project-glow { opacity: 1; }

.project-glow {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-glow { opacity: 1; }

.project-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  align-self: start;
  padding-top: 4px;
  user-select: none;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.project-company {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}
.project-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project-role {
  font-size: 0.8rem;
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.highlight svg { width: 14px; height: 14px; color: var(--accent-cyan); flex-shrink: 0; }

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ===========================
   Leistungen / Services
=========================== */
#leistungen { background: rgba(10, 15, 35, 0.5); }
#leistungen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.service-card:hover .service-glow { opacity: 1; }

.service-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 0%, var(--glow-purple), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; }

.service-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.service-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
}

.services-cta {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.services-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Certificates
=========================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition);
}
.cert-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.cert-badge {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-badge svg { width: 32px; height: 32px; }
.cert-badge.azure { background: rgba(0, 120, 212, 0.15); color: #0078d4; }
.cert-badge.java { background: rgba(248, 115, 11, 0.15); color: #f8730b; }
.cert-badge.ihk { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.cert-badge.ibm { background: rgba(124, 58, 237, 0.15); color: var(--accent-purple); }

.cert-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.cert-info p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

/* ===========================
   Kontakt Section
=========================== */
#kontakt { background: rgba(10, 15, 35, 0.5); }
#kontakt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.info-cards { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.info-card:hover { border-color: var(--border-hover); transform: translateX(4px); }

.info-icon {
  width: 44px; height: 44px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.info-icon svg { width: 22px; height: 22px; }

.info-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Form */
.kontakt-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.kontakt-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { position: relative; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 16px 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.form-group label {
  position: absolute;
  left: 16px; top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform var(--transition), font-size var(--transition), color var(--transition);
}
.form-group input:not(:placeholder-shown) ~ label,
.form-group input:focus ~ label,
.form-group select:focus ~ label,
.form-group select:not([value=""]):valid ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label {
  transform: translateY(-8px) scale(0.78);
  color: var(--accent-cyan);
  transform-origin: left;
}

.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.2);
}
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.35);
}
.btn-submit svg { width: 18px; height: 18px; }

.btn-loader {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon { opacity: 0; }
.btn-submit.loading .btn-loader { display: block; }

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

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
}
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-success.visible { display: flex; }

/* ===========================
   Footer
=========================== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px clamp(20px, 8vw, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent-cyan); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-copy a { color: var(--accent-cyan); }

.footer-glow {
  position: absolute;
  bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 120px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08), transparent 70%);
  pointer-events: none;
}

/* ===========================
   Reveal Animations
=========================== */
.reveal-fade,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.94); }

.reveal-fade.visible,
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1100px) {
  #hero { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding-bottom: 80px; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: rgba(3, 7, 18, 0.97); flex-direction: column; align-items: center; justify-content: center; gap: 24px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 1001; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-name { font-size: clamp(2.4rem, 10vw, 4rem); }
}

@media (max-width: 480px) {
  .kontakt-form-wrap { padding: 24px; }
  .skills-container { padding: 24px; }
  .services-cta { padding: 32px 20px; }
}

/* ===========================
   Glitch effect on name hover
=========================== */
.hero-name {
  position: relative;
  cursor: default;
}
.hero-name:hover {
  animation: glitch 0.4s steps(1) infinite;
}
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--accent-cyan), -2px 0 var(--accent-pink); }
  33% { text-shadow: -2px 0 var(--accent-purple), 2px 0 var(--accent-cyan); }
  66% { text-shadow: 2px 0 var(--accent-pink), -2px 0 var(--accent-purple); }
  100% { text-shadow: none; }
}

/* ===========================
   Selection
=========================== */
/* ===========================
   CAPTCHA
=========================== */
.captcha-block {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 12px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-sm);
}

.captcha-question {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.captcha-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.captcha-task {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.captcha-input-wrap {
  margin: 0;
}
.captcha-input-wrap input {
  padding: 12px 14px 4px;
}
.captcha-input-wrap input.error {
  border-color: var(--accent-pink) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1) !important;
}

.captcha-refresh {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
  align-self: end;
  margin-bottom: 1px;
}
.captcha-refresh:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: rotate(90deg);
}
.captcha-refresh svg { width: 16px; height: 16px; }

.captcha-error {
  grid-column: 1 / -1;
  display: none;
  font-size: 0.78rem;
  color: var(--accent-pink);
  font-family: var(--font-mono);
}
.captcha-error.visible { display: block; }

/* Email display — not selectable */
.eml-display {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

::selection { background: rgba(0, 212, 255, 0.25); color: var(--text-primary); }

/* ===========================
   Theme Toggle Button
=========================== */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--glow-cyan);
  transform: rotate(20deg);
}
.theme-toggle svg { width: 17px; height: 17px; }
.icon-moon { display: none; }

/* Mobile nav adjustments */
@media (max-width: 768px) {
  .theme-toggle { order: -1; }
}

/* ===========================
   Light Theme
=========================== */
body.light {
  --bg-primary: #f0f5ff;
  --bg-secondary: #e4ecfa;
  --bg-card: rgba(255, 255, 255, 0.88);
  --accent-cyan: #0080a8;
  --accent-purple: #6d28d9;
  --accent-pink: #db2777;
  --accent-green: #059669;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(80, 140, 200, 0.18);
  --border-hover: rgba(0, 128, 168, 0.45);
  --glow-cyan: rgba(0, 128, 168, 0.07);
  --glow-purple: rgba(109, 40, 217, 0.07);
}

/* Icons */
body.light .icon-sun { display: none; }
body.light .icon-moon { display: block; }

/* Grid overlay */
body.light .grid-overlay {
  background-image:
    linear-gradient(rgba(0, 60, 120, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 60, 120, 0.04) 1px, transparent 1px);
}

/* Navbar */
body.light #navbar {
  background: rgba(240, 245, 255, 0.82);
}
body.light #navbar.scrolled {
  background: rgba(240, 245, 255, 0.96);
}
body.light .nav-links {
  background: rgba(240, 245, 255, 0.98);
}

/* Form inputs */
body.light .form-group input,
body.light .form-group select,
body.light .form-group textarea {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(80, 140, 200, 0.22);
  color: var(--text-primary);
}
body.light .form-group select option {
  background: #f0f5ff;
  color: var(--text-primary);
}

/* Skill bar background */
body.light .skill-bar {
  background: rgba(0, 0, 0, 0.08);
}

/* Card shadows on light */
body.light .expertise-card,
body.light .service-card,
body.light .cert-card,
body.light .info-card,
body.light .kontakt-form-wrap,
body.light .skills-container,
body.light .services-cta,
body.light .stat-card,
body.light .legal-box {
  box-shadow: 0 4px 20px rgba(0, 40, 100, 0.07);
}

/* Section backgrounds */
body.light #expertise,
body.light #leistungen,
body.light #zertifikate,
body.light #kontakt {
  background: rgba(220, 234, 255, 0.35);
}
body.light #expertise::before,
body.light #leistungen::before,
body.light #zertifikate::before,
body.light #kontakt::before {
  opacity: 0.4;
}

/* Code window — light IDE style */
body.light .code-window {
  background: #f8faff;
  border-color: rgba(80, 140, 200, 0.22);
  box-shadow: 0 8px 40px rgba(0, 40, 100, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}
body.light .window-bar {
  background: rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(80, 140, 200, 0.18);
}
body.light .window-title { color: var(--text-muted); }
body.light .code-content code { color: var(--text-primary); }
body.light .kw { color: #7c3aed; }
body.light .cl { color: #0369a1; }
body.light .st { color: #15803d; }
body.light .nm { color: #b45309; }

/* Stats */
body.light .stats-grid .stat-card {
  background: rgba(255, 255, 255, 0.9);
}

/* Hero badge */
body.light .hero-badge {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
}

/* Captcha */
body.light .captcha-block {
  background: rgba(0, 128, 168, 0.04);
  border-color: rgba(0, 128, 168, 0.18);
}

/* Project-number (unused but kept) */
body.light .project-number { color: rgba(0, 0, 0, 0.06); }

/* Footer */
body.light footer {
  background: rgba(220, 234, 255, 0.5);
  border-top-color: var(--border);
}
body.light .footer-glow {
  background: radial-gradient(ellipse, rgba(0, 128, 168, 0.06), transparent 70%);
}

/* Scroll indicator */
body.light .scroll-indicator { color: var(--text-muted); }
body.light .scroll-line {
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

/* Legal pages */
body.light .legal-header,
body.light .legal-content { color: var(--text-primary); }
body.light .legal-highlight {
  background: rgba(0, 128, 168, 0.05);
  border-left-color: var(--accent-cyan);
}

/* Glitch colors on light */
body.light .hero-name:hover {
  animation: glitch-light 0.4s steps(1) infinite;
}
@keyframes glitch-light {
  0%  { text-shadow:  2px 0 #0080a8, -2px 0 #db2777; }
  33% { text-shadow: -2px 0 #6d28d9,  2px 0 #0080a8; }
  66% { text-shadow:  2px 0 #db2777, -2px 0 #6d28d9; }
  100%{ text-shadow: none; }
}

body.light .hero-portrait-wrap::after { background: var(--bg-primary); }
body.light .hero-portrait-img { box-shadow: 0 0 32px rgba(0, 128, 168, 0.25); }

/* Transition when switching themes */
body, body * {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}
/* But don't delay animations/transforms */
body .reveal-fade, body .reveal-up, body .reveal-left, body .reveal-right, body .reveal-scale,
body .skill-fill, body .captcha-refresh, body .btn-primary, body .btn-secondary,
body .theme-toggle, body .hamburger span, body .hero-portrait-wrap::before {
  transition-property: opacity, transform, background, border-color, color, box-shadow, width;
}
