:root {
  --bg: #07060d;
  --bg-2: #0d0b18;
  --surface: rgba(20, 17, 36, .72);
  --line: rgba(255, 255, 255, .08);
  --ink: #f2efff;
  --muted: #9a95b8;
  --cyan: #2ef2ff;
  --pink: #ff3fd1;
  --violet: #8b5cff;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.mono { font-family: var(--f-mono); }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; }
.g1 { width: 520px; height: 520px; background: var(--violet); top: -200px; left: -120px; }
.g2 { width: 440px; height: 440px; background: var(--cyan); top: 120px; right: -180px; opacity: .18; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 6, 13, .6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 13px var(--f-display); letter-spacing: .12em; white-space: nowrap; }
.brand b { font-weight: 800; color: var(--cyan); text-shadow: 0 0 12px rgba(46, 242, 255, .6); }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hero { padding: clamp(64px, 11vw, 128px) 0 clamp(40px, 6vw, 64px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 500 12px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan), 0 0 22px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { margin: 0; font: 800 clamp(38px, 7.5vw, 88px)/1.02 var(--f-display); letter-spacing: -.02em; }
.neon {
  background: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 92, 255, .55));
}
.lead { margin: 22px 0 0; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }

/* ---------- Projekte ---------- */
.projects { padding-bottom: clamp(80px, 10vw, 140px); scroll-margin-top: 80px; }
.projects-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.projects-head h2 { margin: 0; font: 700 14px var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.count { font-size: 13px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: clamp(18px, 2.4vw, 30px); }

.card {
  --accent: var(--cyan);
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r); text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s;
}
.card::before { /* Neon-Rahmen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .45; transition: opacity .35s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent),
              0 0 40px -6px color-mix(in srgb, var(--accent) 55%, transparent),
              0 30px 60px -30px #000;
  outline: none;
}
.card:hover::before, .card:focus-visible::before { opacity: 1; }

.media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0914; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .media img { transform: scale(1.05); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 11, 24, .95), transparent 55%); }
.media .placeholder { display: grid; place-items: center; width: 100%; height: 100%; font: 800 64px var(--f-display); color: var(--accent); text-shadow: 0 0 30px var(--accent); }

.status {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(7, 6, 13, .7); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.body { position: relative; padding: 4px clamp(20px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px); margin-top: -44px; z-index: 1; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card h3 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.1 var(--f-display); letter-spacing: -.01em; }
.tagline { margin: 4px 0 0; font: 500 13px var(--f-mono); letter-spacing: .08em; color: var(--accent); text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.arrow {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent); font-size: 22px;
  transition: background .3s, color .3s, transform .3s, box-shadow .3s;
}
.card:hover .arrow { background: var(--accent); color: var(--bg); transform: rotate(-45deg); box-shadow: 0 0 24px var(--accent); }
.desc { margin: 0; color: var(--muted); font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin: 4px 0 0; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats div { background: var(--bg-2); padding: 12px 14px; }
.stats dt { font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span { font: 500 12px var(--f-mono); padding: 4px 10px; border-radius: 8px; color: var(--muted); border: 1px solid var(--line); }
.url { font: 400 12px var(--f-mono); color: var(--muted); opacity: .7; word-break: break-all; }

/* ---------- Footer / Infos ---------- */
.info {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(16px, 4vw, 48px) 28px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px 48px;
}
.info-block { scroll-margin-top: 80px; }
.info h3 { margin: 0 0 12px; font: 700 13px var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 12px rgba(46, 242, 255, .45); }
.info p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--cyan); }

/* ---------- Einblenden ---------- */
.card { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
.card:hover, .card:focus-visible { animation: none; opacity: 1; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .nav a:not(:first-child) { display: none; }
  .brand span { font-size: 11px; }
  .arrow { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}
