@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:       #080b0f;
  --bg2:      #0f1318;
  --bg3:      #161b22;
  --bg4:      #1e2530;
  --border:   #21262d;
  --border2:  #30363d;
  --text:     #e6edf3;
  --muted:    #7d8590;
  --dim:      #484f58;
  --accent:   #ff6b6b;
  --accent2:  #c0392b;
  --green:    #ff8c69;
  --green2:   #a93226;
  --orange:   #d29922;
  --purple:   #a371f7;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', sans-serif;
  --radius:   8px;
  --radius-lg:12px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── MOUSE GLOW ── */
#mouse-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.08s ease, top 0.08s ease;
  z-index: 0;
  top: 0; left: 0;
}

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
#loader div {
  width: 36px; height: 36px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SUCCESS POPUP ── */
#popup-success {
  position: fixed; top: 24px; right: 24px;
  background: var(--bg3);
  border: 1px solid var(--green2);
  padding: 14px 20px;
  border-radius: var(--radius);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.85rem;
  z-index: 10000;
  opacity: 0;
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
#popup-success.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ── COOKIE NOTICE ── */
#cookie-hinweis {
  position: fixed; bottom: 20px; left: 20px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 8px 14px;
  border-radius: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  z-index: 5000;
  animation: fadeUp 0.8s 1s ease both;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 58px;
  background: rgba(8,11,15,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo .logo-dot { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex; gap: 2px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg3);
}

.hamburger {
  display: none;
  background: none; border: none;
  color: var(--muted); font-size: 1.3rem;
  cursor: pointer; padding: 4px;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 32px 60px;
  position: relative; overflow: hidden;
}

.hero-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.06) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 680px; text-align: center;
  animation: fadeUp 0.8s ease both;
}

.hero-pre {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero-pre .prompt { color: var(--green); }
.hero-pre .cmd    { color: var(--accent); }

.hero-h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.hero-h1 .hl   { color: var(--accent); }
.hero-h1 .cursor {
  display: inline-block;
  width: 3px; height: 0.9em;
  background: var(--accent);
  vertical-align: middle; margin-left: 3px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-btns {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.btn-prim {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  background: var(--accent2); color: #fff;
  padding: 9px 20px; border: 1px solid var(--accent);
  border-radius: var(--radius); cursor: pointer;
  text-decoration: none; transition: all 0.15s;
}
.btn-prim:hover { background: var(--accent); transform: translateY(-1px); }

.btn-sec {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); background: transparent;
  padding: 9px 20px; border: 1px solid var(--border2);
  border-radius: var(--radius); cursor: pointer;
  text-decoration: none; transition: all 0.15s;
}
.btn-sec:hover { color: var(--text); border-color: var(--dim); }

/* ── SECTIONS ── */
section {
  padding: 72px 32px;
  border-top: 1px solid var(--border);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
section.visible { opacity: 1; transform: translateY(0); }

.container { max-width: 900px; margin: 0 auto; }

.section-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 40px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px; align-items: start;
}
.about-text { color: var(--muted); line-height: 1.9; }
.about-text p { margin-bottom: 14px; }
.about-text a { color: var(--accent); text-decoration: none; }
.about-text a:hover { text-decoration: underline; }

.about-stats {
  display: flex; flex-direction: column; gap: 14px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-num {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 700;
  color: var(--text); line-height: 1;
}
.stat-label {
  font-size: 11px; color: var(--muted); margin-top: 3px;
  font-family: var(--mono);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 52px 28px 1fr;
  gap: 0 16px;
  margin-bottom: 0;
  position: relative;
}

.tl-item .tl-line {
  position: relative;
  display: flex;
  justify-content: center;
}
.tl-item .tl-line::before {
  content: '';
  position: absolute;
  top: 0; bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--border2);
}
.tl-item--last .tl-line::before {
  bottom: 28px;
}

.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 18px;
  position: relative; z-index: 1;
  flex-shrink: 0;
  border: 2px solid var(--bg);
}
.tl-dot--fire    { background: var(--orange);  box-shadow: 0 0 0 3px rgba(210,153,34,0.2); }
.tl-dot--project { background: var(--accent);  box-shadow: 0 0 0 3px rgba(255,107,107,0.2); }
.tl-dot--work    { background: var(--purple);  box-shadow: 0 0 0 3px rgba(163,113,247,0.2); }
.tl-dot--mini    { background: var(--dim);     width: 8px; height: 8px; margin-top: 20px; }

.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  text-align: right;
  letter-spacing: 0.02em;
}

.tl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.tl-card:hover { border-color: var(--border2); }

.tl-card--activity { border-left: 2px solid var(--orange); }
.tl-card--project  { border-left: 2px solid var(--accent); }
.tl-card--mini     {
  border-left: 2px solid var(--dim);
  background: var(--bg);
  padding: 12px 16px;
}
.tl-card--mini .tl-title { font-size: 13px; }
.tl-card--mini .tl-desc  { font-size: 12px; }

.tl-card--link {
  display: block;
  text-decoration: none; color: inherit;
  cursor: pointer;
}
.tl-card--link:hover {
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateX(3px);
  transition: all 0.15s;
}
.tl-card--link:hover .tl-arrow { color: var(--text); }

.tl-arrow {
  margin-left: auto;
  color: var(--dim);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.tl-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg4);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: contain;
}
.tl-logo--sm { width: 22px; height: 22px; }

.tl-card-header {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}
.tl-icon {
  font-size: 20px; line-height: 1;
  flex-shrink: 0; margin-top: 1px;
}
.tl-icon--sm { font-size: 15px; }

.tl-title {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--text); line-height: 1.3;
}
.tl-sub {
  font-size: 11px; color: var(--muted);
  font-family: var(--mono); margin-top: 2px;
}
.tl-sub a { color: var(--muted); text-decoration: none; }
.tl-sub a:hover { color: var(--accent); }

.tl-badge {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 8px; border-radius: 20px;
  margin-left: auto; flex-shrink: 0;
}
.tl-badge--active {
  color: var(--green); border: 1px solid var(--green2);
  background: rgba(255,140,105,0.08);
}

.tl-desc {
  font-size: 13px; color: var(--muted); line-height: 1.7;
}

.tl-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.tl-tag {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 8px; border-radius: 4px;
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--dim);
}

.tl-item:has(.tl-dot--work) .tl-card { border-left-color: var(--purple); }

@media (max-width: 600px) {
  .tl-item { grid-template-columns: 40px 20px 1fr; gap: 0 10px; }
  .tl-year { font-size: 10px; }
}

/* ── KONTAKT ── */
.kontakt-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.kontakt-info { color: var(--muted); }
.kontakt-info p { margin-bottom: 12px; font-size: 14px; }
.kontakt-info a { color: var(--accent); text-decoration: none; }
.kontakt-info a:hover { text-decoration: underline; }

.kontakt-formular {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.kontakt-formular input,
.kontakt-formular textarea {
  width: 100%; padding: 9px 12px;
  margin-bottom: 10px;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px;
  outline: none; transition: border-color 0.15s;
  resize: none;
}
.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
  border-color: var(--accent);
}
.kontakt-formular input::placeholder,
.kontakt-formular textarea::placeholder { color: var(--dim); }

.kontakt-formular button {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  background: var(--accent2); color: #fff;
  padding: 9px 20px; border: 1px solid var(--accent);
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.15s; width: 100%;
}
.kontakt-formular button:hover { background: var(--accent); }

/* ── FOOTER ── */
footer {
  text-align: center; padding: 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── POPUPS ── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
}
.popup {
  display: none; position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--text);
  max-width: 92%; width: 340px;
  z-index: 10001;
}
#datenschutz-popup {
  width: 480px; max-height: 80vh;
  overflow-y: auto;
}
.popup h3 {
  font-family: var(--mono); font-size: 1rem;
  font-weight: 600; margin-bottom: 16px;
  color: var(--accent);
}
.popup h4 {
  font-family: var(--mono); font-size: 0.85rem;
  font-weight: 500; color: var(--text);
  margin: 18px 0 6px;
}
.popup p {
  font-size: 13px; color: var(--muted);
  line-height: 1.8; margin-bottom: 10px;
}
.popup .close-btn {
  position: absolute; top: 12px; right: 12px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2);
  width: 26px; height: 26px;
  border-radius: 6px; cursor: pointer;
  font-size: 12px; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.popup .close-btn:hover { background: var(--bg4); color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 18px; }
  .hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 58px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
  }
  .nav-links.active { display: flex; }
  .nav-links li { margin: 0; }
  .nav-links a { display: block; padding: 10px 18px; border-radius: 0; }

  #home { padding: 72px 18px 48px; }
  section { padding: 52px 18px; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 100px; }

  .kontakt-wrapper { grid-template-columns: 1fr; gap: 28px; }

  #datenschutz-popup { width: 92vw; max-height: 75vh; }

  .hero-h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
}