@font-face {
  font-family: "Source Code Pro";
  src: url("../fonts/source-code-pro-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../fonts/source-code-pro-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../fonts/source-code-pro-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07080a;
  --accent: #ff4d8d;
  --accent2: #ff7a3d;
  --text: #ffffff;
  --sub: #aab0bd;
  --desc: #9aa0ad;
  --card: rgba(20, 22, 26, 0.55);
  --line: rgba(255, 255, 255, 0.09);
  --max: 1200px;
  --pad: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Source Code Pro", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

#fluid {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.top, main, .foot { position: relative; z-index: 1; }

a { color: inherit; }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  font-size: 15px;
}
.logo span, h1 span { color: var(--accent); }
.top-mail {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--sub);
}
.top-mail { margin-left: auto; }
.top-mail:hover { color: var(--text); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 80px;
}
.kicker {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sub);
}
h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 12vw, 150px);
  line-height: 0.98;
  letter-spacing: 0.04em;
}
.sub {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--sub);
}

.projects {
  margin-inline: calc(50% - min(780px, 50vw - var(--pad)));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 120px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(255, 77, 141, 0.55); transform: translateY(-3px); }
.card-tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
}
.card h2 {
  margin: 10px 0 12px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.04em;
}
.card p { margin: 0 0 24px; color: var(--desc); }
.card-link { margin-top: auto; color: var(--accent); font-weight: 600; }
.card-link::after { content: " →"; }

.contact { padding-bottom: 72px; text-align: center; }
.contact h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sub);
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--desc);
}
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Unterseiten: füllen den ganzen Bildschirm */
.page {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 80px;
}
.page h1 { font-size: clamp(44px, 9vw, 120px); line-height: 1; margin-bottom: 40px; }
.page-intro p { max-width: 46em; font-size: clamp(17px, 1.8vw, 20px); }
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.page-grid section {
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.page h2 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.page p { color: var(--sub); margin: 0 0 10px; }
.page p:last-child { margin-bottom: 0; }
.page a { color: var(--accent); }
.page-stand { margin-top: 24px !important; font-size: 13px; color: var(--desc) !important; }

@media (max-width: 1060px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .projects .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .projects .card:last-child { grid-column: auto; }
  .hero { min-height: calc(100svh - 80px); }
  .foot { flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .foot nav { order: 1; }
  .foot .copy { order: 2; margin-top: 22px; }
}

/* Kleine Zeilen und Links in Source Code Pro, Titel in Orbitron */
.top-mail, .card-tag, .foot, .page-stand { font-family: "Source Code Pro", ui-monospace, monospace; letter-spacing: 0; }
.card-link { font-weight: 700; }
.sub { font-size: clamp(18px, 1.8vw, 20px); }
.card p, .page p { color: #b4b9c4; }

/* NEXUS läuft langsam durch Neonfarben */
h1 span, .logo span {
  background: linear-gradient(135deg, #ff2bd6, #9d4dff, #00e5ff, #39ff88, #ff2bd6, #9d4dff, #00e5ff, #39ff88, #ff2bd6) 0 0 / 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nexus 12s linear infinite;
}
h1 span { filter: drop-shadow(0 0 18px rgba(157, 77, 255, 0.45)); }
@keyframes nexus { to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { h1 span, .logo span { animation: none; } }
