@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations'),
       url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:       #0a0a0f;
  --bg-soft:  #121218;
  --fg:       #f3f3f4;
  --muted:    #8a8a95;
  --muted-dim:#55555f;
  --accent:   #facc15;
  --cyan:     #00ffe1;
  --magenta:  #ff2e93;
  --green:    #22c55e;
  --card:     #17171d;
  --border:   rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  overflow-x: hidden;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }

/* ---------- Background ---------- */
.bg-scene {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.bg-blob {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  filter: blur(60px); opacity: 0.28;
  will-change: transform;
}
.bg-blob.b1 { background: radial-gradient(circle, var(--accent), transparent 60%); top: -120px; left: -120px; animation: bA 40s ease-in-out infinite; }
.bg-blob.b2 { background: radial-gradient(circle, var(--cyan), transparent 60%); top: 25%; right: -160px; animation: bB 45s ease-in-out infinite; }
.bg-blob.b3 { background: radial-gradient(circle, var(--magenta), transparent 60%); bottom: -160px; left: 25%; animation: bC 42s ease-in-out infinite; opacity: 0.2; }
.bg-blob.b4 { background: radial-gradient(circle, var(--green), transparent 60%); top: 60%; left: -120px; width: 320px; height: 320px; animation: bD 48s ease-in-out infinite; opacity: 0.2; }
@keyframes bA { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(200px,140px) scale(1.15);} 66%{transform:translate(70px,240px) scale(0.95);} }
@keyframes bB { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-240px,-160px) scale(1.1);} }
@keyframes bC { 0%,100%{transform:translate(0,0) scale(1);} 40%{transform:translate(-140px,-200px) scale(1.2);} 75%{transform:translate(200px,-100px) scale(0.9);} }
@keyframes bD { 0%,100%{transform:translate(0,0) scale(0.9);} 50%{transform:translate(280px,-140px) scale(1.1);} }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 225, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

.bg-rain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
}
/* Code-Regen nur auf Desktop */
@media (max-width: 720px) { .bg-rain { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none; }
}
/* pausieren wenn Tab nicht sichtbar (via JS class) */
body.bg-paused .bg-blob { animation-play-state: paused; }

/* ---------- Layout ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.45rem; font-weight: 900; font-size: 1rem; letter-spacing: -0.02em; }
.brand-prompt { color: var(--cyan); font-family: 'JetBrains Mono', monospace; }
.brand-name { color: var(--fg); }
.brand-cursor { width: 8px; height: 16px; background: var(--cyan); margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.92rem; position: relative; transition: color .15s; }
.nav a:hover { color: var(--fg); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--cyan); transition: width .25s; }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); transition: transform .2s, opacity .2s; }

.lang-picker-wrap { display: inline-flex; gap: 2px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px; padding: 2px; margin-left: 0.8rem; }
.lp-btn { padding: 4px 9px; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-decoration: none; border-radius: 5px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em; transition: all .15s; }
.lp-btn:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.lp-btn.active { background: var(--accent); color: #000; }

@media (max-width: 720px) {
  .nav { position: fixed; top: 64px; left: 0; right: 0; background: rgba(10,10,15,0.96); backdrop-filter: blur(20px); flex-direction: column; gap: 0; padding: 1rem 1.25rem; transform: translateY(-150%); transition: transform .25s; border-bottom: 1px solid var(--border); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.main { min-height: 60vh; }

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 4rem; position: relative; }
.hero-term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem; color: var(--muted);
  margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}
.term-prefix { color: var(--cyan); }
.term-typed { color: var(--accent); font-weight: 700; }
.term-cursor { display: inline-block; width: 9px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #bfe6ff 40%, var(--cyan) 70%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  background: var(--accent); color: #000;
  border-radius: 11px; border: none; cursor: pointer;
  font-weight: 900; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em;
  transition: transform .12s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(250, 204, 21, 0.45); color: #000; }
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; padding: 0.9rem 1.4rem;
  background: transparent; border: 1px solid var(--border); color: var(--fg);
  border-radius: 11px; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat-lbl { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-head .section-title { margin: 0; }

.services { padding: 4rem 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 225, 0.08), transparent 50%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-3px); border-color: rgba(0, 255, 225, 0.3); box-shadow: 0 10px 40px rgba(0, 255, 225, 0.08); }
.service-ico { width: 44px; height: 44px; color: var(--cyan); margin-bottom: 1rem; }
.service-ico svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.2rem; margin: 0 0 0.5rem; font-weight: 800; letter-spacing: -0.01em; }
.service-card p { color: var(--muted); line-height: 1.55; margin: 0; font-size: 0.92rem; }

.about-short { padding: 3rem 0; }
.lead { font-size: 1.15rem; color: var(--fg); line-height: 1.6; max-width: 720px; margin: 0 0 1.2rem; }
.link-arrow { color: var(--cyan); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Projects ---------- */
.projects, .projects-preview { padding: 3rem 0; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.project-card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: block; position: relative;
  transition: transform .2s, border-color .2s, box-shadow .25s;
  color: inherit;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(250, 204, 21, 0.4); box-shadow: 0 12px 40px rgba(250, 204, 21, 0.12); color: inherit; }
.pc-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0f; position: relative; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.project-card:hover .pc-img img { transform: scale(1.05); }
.pc-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted-dim); font-family: 'JetBrains Mono', monospace; background: linear-gradient(135deg, #13131a, #1a1a24); }
.pc-body { padding: 1.1rem 1.25rem; }
.pc-badge { display: inline-block; background: var(--accent); color: #000; padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.pc-body h3 { font-size: 1.15rem; margin: 0 0 0.4rem; font-weight: 800; letter-spacing: -0.01em; }
.pc-sub { color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin: 0 0 0.8rem; }
.pc-tech { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-tag { background: rgba(0, 255, 225, 0.1); color: var(--cyan); padding: 0.15rem 0.55rem; border-radius: 5px; font-size: 0.7rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; border: 1px solid rgba(0, 255, 225, 0.2); }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.project-card, .service-card { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Page head ---------- */
.page-head { padding: 5rem 0 2rem; }
.eyebrow { color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: lowercase; margin-bottom: 0.6rem; display: inline-block; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em; margin: 0 0 0.8rem; line-height: 1.05; }

/* ---------- Project detail ---------- */
.project-detail { padding: 2rem 0 4rem; }
.project-hero-img { aspect-ratio: 21 / 9; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); margin-bottom: 1.5rem; background: #0a0a0f; }
.project-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.project-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.prose { max-width: 780px; color: var(--fg); line-height: 1.7; }
.prose p { margin: 0 0 1rem; }
.prose h2, .prose h3 { margin: 2rem 0 0.8rem; font-weight: 800; letter-spacing: -0.01em; }
.prose a { color: var(--cyan); border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose code { background: rgba(0, 255, 225, 0.08); color: var(--cyan); padding: 0.1rem 0.4rem; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.9em; }

/* ---------- Comments ---------- */
.comments { padding: 3rem 0 5rem; border-top: 1px solid var(--border); }
.comments .section-title .count { color: var(--muted); font-size: 0.7em; }
.comment-form { background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; margin-bottom: 2rem; }
.comment-form label { display: block; margin-bottom: 0.9rem; }
.comment-form label span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; margin-bottom: 0.3rem; }
.comment-form label span em { font-style: normal; color: var(--muted-dim); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.85em; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border); color: var(--fg);
  border-radius: 9px; font-size: 0.95rem; font-family: inherit;
  transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--cyan); }
.comment-form textarea { resize: vertical; min-height: 100px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 540px) { .cf-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; }
.comment-form .hint { color: var(--muted-dim); font-size: 0.8rem; margin: 0.8rem 0 0; }

.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.comment {
  background: var(--card); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem;
}
.c-head { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.4rem; }
.c-head strong { font-weight: 700; }
.c-time { color: var(--muted-dim); font-size: 0.75rem; }
.c-body { color: #d4d4d8; line-height: 1.55; font-size: 0.95rem; }

/* ---------- Flash ---------- */
.flash { border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1rem; font-weight: 600; border: 1px solid; }
.flash-ok { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.4); color: #6ee7b7; }
.flash-err { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }

/* ---------- CTA ---------- */
.cta { padding: 4rem 0; }
.cta-box {
  background: linear-gradient(135deg, rgba(0, 255, 225, 0.08), rgba(255, 46, 147, 0.08));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 3rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(0, 255, 225, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 0 0 0.5rem; font-weight: 900; letter-spacing: -0.03em; }
.cta-box p { color: var(--muted); margin: 0 0 1.5rem; }

/* ---------- Contact ---------- */
.content-block { padding: 2rem 0 5rem; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; backdrop-filter: blur(14px);
  max-width: 520px;
}
.contact-mail {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
  margin-top: 0.3rem; border-bottom: 2px dashed var(--accent);
  padding-bottom: 2px;
}
.contact-mail:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Empty states ---------- */
.empty { color: var(--muted); padding: 2rem 0; text-align: center; font-size: 0.95rem; }

/* ---------- Newsletter ---------- */
.newsletter-section { padding: 3rem 0 1rem; position: relative; z-index: 1; }
.nl-card {
  background: linear-gradient(135deg, rgba(0, 255, 225, 0.07), rgba(250, 204, 21, 0.05));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem; backdrop-filter: blur(18px);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
@media (max-width: 720px) { .nl-card { grid-template-columns: 1fr; } }
.nl-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
.nl-desc  { color: var(--muted); margin: 0; font-size: 0.92rem; }
.nl-form  { display: flex; gap: 0.5rem; }
@media (max-width: 540px) { .nl-form { flex-direction: column; } }
.nl-input {
  flex: 1; min-width: 220px; padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border); color: var(--fg);
  border-radius: 11px; font-family: inherit; font-size: 0.95rem;
}
.nl-input:focus { outline: none; border-color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); padding: 2rem 0; background: rgba(10, 10, 15, 0.5); backdrop-filter: blur(10px); position: relative; z-index: 1; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; text-align: center; } }
.foot-brand { font-weight: 800; color: var(--fg); }
.foot-line { color: var(--muted); font-size: 0.85rem; }
.foot-links { display: flex; gap: 1rem; justify-content: flex-end; }
@media (max-width: 640px) { .foot-links { justify-content: center; } }
.foot-links a { color: var(--muted); font-size: 0.85rem; }
.foot-links a:hover { color: var(--cyan); }
.foot-copy { color: var(--muted-dim); font-size: 0.8rem; grid-column: 1 / -1; padding-top: 0.8rem; border-top: 1px solid var(--border); }
