*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #F8F8F6;
  --surface:    #F0F0EE;
  --border:     #E2E2DE;
  --text:       #111111;
  --body:       #555555;
  --muted:      #888888;
  --accent:     #2456E5;
  --accent-bg:  #EAF0FD;
  --accent-bdr: #C4D5F8;
  --green:      #16A34A;
  --green-bg:   #DCFCE7;
  --radius-sm:  5px;
  --radius:     8px;
  --radius-lg:  12px;
  --max:        700px;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NAV */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(248, 248, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-brand .prompt { color: var(--accent); }

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: blink-dot 2.8s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 90%, 100% { opacity: 1; }
  45% { opacity: 0.25; }
}

.nav-live {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.04em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color 0.15s;
}

nav ul a:hover { color: var(--accent); }

/* LAYOUT */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5.5rem 0; }

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.75rem;
}

/* HERO */
#hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.hero-name {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cursor {
  display: inline-block;
  width: 2.5px;
  height: 0.85em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 3px;
  border-radius: 1px;
  animation: cur 1.1s step-end infinite;
}

@keyframes cur {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-role {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--body);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.75rem;
}

.hero-cta { display: flex; gap: 0.875rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.575rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  line-height: 1;
}

.btn-fill {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-fill:hover {
  background: #1a3fb5;
  border-color: #1a3fb5;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ÜBER MICH */
#ueber p.copy {
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.8;
  max-width: 580px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.875rem;
  margin-top: 2rem;
}

.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.meta-key {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.meta-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

/* KENNTNISSE */
.skill-group { margin-bottom: 1.5rem; }
.skill-group:last-child { margin-bottom: 0; }

.skill-group-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.7rem;
  letter-spacing: 0.02em;
}

/* PROJEKTE */
.proj-list { display: flex; flex-direction: column; gap: 1rem; }

.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proj-card:hover {
  border-color: #b8cbf5;
  box-shadow: 0 4px 20px rgba(36, 86, 229, 0.07);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  gap: 1rem;
}

.proj-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.proj-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.proj-desc {
  font-size: 0.93rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.proj-tag {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
}

.proj-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.proj-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  flex-shrink: 0;
}

.proj-link:hover { color: var(--accent); }

/* KONTAKT */
#kontakt > p.copy {
  font-size: 1.05rem;
  color: var(--body);
  margin-bottom: 2rem;
  max-width: 480px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
  font-size: 0.95rem;
}

.c-icon {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  width: 1.5rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-item span { color: var(--body); }

/* FOOTER */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  gap: 1rem;
  flex-wrap: wrap;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-live { display: none; }
  nav ul { gap: 1.25rem; }
  nav ul a { font-size: 0.82rem; }
  main { padding: 0 1.25rem; }
  #hero { padding-top: 8rem; }
  section { padding: 4rem 0; }
  footer { padding: 2rem 1.25rem; flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  .nav-dot { animation: none; }
  .btn-fill:hover { transform: none; }
}
