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

:root {
  --bg:        #0e0e0e;
  --surface:   #161616;
  --border:    #262626;
  --muted:     #555;
  --text:      #c8c8c8;
  --bright:    #f0f0f0;
  --accent:    #a8ff78;
  --accent-dim:#4a7a35;
  --mono:      'DM Mono', monospace;
  --serif:     'Instrument Serif', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

/* --- Layout --- */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
nav {
  padding: 32px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--bright); }

/* --- Hero --- */
.hero {
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.hero-greeting {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 64px);
  color: var(--bright);
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-bio {
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-image {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  border: 1px solid var(--border);
}

/* Placeholder wenn kein Bild vorhanden */
.hero-image-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.5;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.social-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* --- Section --- */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

/* --- Projects --- */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.project-card {
  background: var(--bg);
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}

.project-card:hover {
  background: var(--surface);
}

.project-card:hover .project-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.project-name {
  color: var(--bright);
  font-size: 14px;
  margin-bottom: 4px;
}

.project-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.project-tag {
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.project-arrow {
  color: var(--border);
  font-size: 16px;
  transition: transform 0.2s, color 0.2s;
}

/* --- Skills --- */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --- Contact --- */
.contact-text {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--bright);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
}

.contact-text em {
  font-style: italic;
  color: var(--accent);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.cta-link:hover { opacity: 0.7; }

/* --- Footer --- */
footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
  animation: pulse 2.5s ease-in-out infinite;
}

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

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-greeting { animation: fadeUp 0.5s ease both; }
.hero-name     { animation: fadeUp 0.5s 0.1s ease both; }
.hero-bio      { animation: fadeUp 0.5s 0.2s ease both; }
.social-links  { animation: fadeUp 0.5s 0.3s ease both; }
.hero-image-wrap,
.hero-image-placeholder { animation: fadeUp 0.5s 0.15s ease both; }

/* --- Responsive --- */
@media (max-width: 520px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-image-wrap,
  .hero-image-placeholder {
    order: -1;
  }
  nav { flex-direction: column; gap: 16px; align-items: flex-start; }
  footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}
