/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #07090f;
  --surface:      #0e1628;
  --surface-hi:   #152035;
  --blue:         #3b82f6;
  --blue-bright:  #60a5fa;
  --blue-dim:     #1d3461;
  --white:        #e8f0fe;
  --muted:        #5c7099;
  --border:       #152240;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Red Hat Mono", monospace;
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 42% 1fr;
  height: 100vh;
  min-height: 600px;
}

/* ---- Photo column ---- */
.hero-photo {
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* fade edges into background */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  transparent 55%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 75%, var(--bg) 100%);
  pointer-events: none;
}

/* placeholder shown when no real image is set */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed var(--blue-dim);
  color: var(--muted);
  font-size: 0.85rem;
}

.photo-placeholder span { font-size: 1.2rem; color: var(--blue-dim); }
.photo-placeholder code { font-size: 0.75rem; opacity: 0.6; }

/* ---- Content column ---- */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px 64px 52px;
  gap: 0;
}

.hero-label {
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-title {
  color: var(--blue-bright);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 28px;
}

.hero-bio {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 52px;
}

/* vertical nav with animated line */
nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}

nav a::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--muted);
  flex-shrink: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

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

nav a:hover::before {
  width: 48px;
  background: var(--blue);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  padding: 100px 80px;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 52px;
}

.section-number {
  color: var(--blue-dim);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  padding-top: 4px;
}

.section-title {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 36px;
}

/* ---- About text ---- */
.about-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 18px;
}

.about-text:last-child { margin-bottom: 0; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--blue-dim);
}

.timeline-entry {
  position: relative;
  padding-bottom: 52px;
}

.timeline-entry:last-child { padding-bottom: 0; }

/* diamond marker */
.timeline-entry::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 7px;
  width: 9px;
  height: 9px;
  background-color: var(--bg);
  border: 1px solid var(--blue-dim);
  transform: rotate(45deg);
}

.timeline-entry.current::before {
  background-color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.timestamp {
  color: var(--muted);
  font-size: 0.8rem;
}

.timestamp::before { content: "["; }
.timestamp::after  { content: "]"; }

.entry-tag {
  background-color: var(--blue-dim);
  color: var(--blue-bright);
  font-size: 0.72rem;
  padding: 2px 9px;
  letter-spacing: 0.06em;
}

.timeline-entry.current .entry-tag {
  background-color: var(--blue);
  color: var(--bg);
}

.entry-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.entry-title .prefix { color: var(--blue-bright); }

.entry-org {
  color: var(--blue-bright);
  font-size: 0.88rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.entry-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 600px;
}

.entry-desc ul {
  padding-left: 16px;
  list-style: disc;
}

.entry-desc li { margin-bottom: 6px; }

/* blinking cursor */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: var(--blue);
  vertical-align: -2px;
  margin-left: 6px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   PROJEKTE
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background-color 0.2s;
}

.project-card:hover {
  border-color: var(--blue-dim);
  background-color: var(--surface-hi);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-tag {
  color: var(--blue);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.project-lang {
  color: var(--muted);
  font-size: 0.75rem;
}

.project-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.project-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
  flex: 1;
}

.project-footer {
  margin-top: 4px;
}

.project-link {
  color: var(--blue-bright);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.project-link:hover { color: var(--white); }

.project-status {
  font-size: 0.78rem;
}

.project-status.active { color: var(--blue-bright); }

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-body { gap: 40px; }

.kontakt-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 36px;
}

.kontakt-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.kontakt-item:hover { border-color: var(--blue-dim); }

.kontakt-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.kontakt-value {
  color: var(--blue-bright);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.kontakt-item:hover .kontakt-value { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-photo {
    height: 70vh;               /* vorher 50vh — mehr Platz fürs Foto */
  }

  .hero-photo img {
    object-position: center 20%; /* Gesicht etwas weiter oben im sichtbaren Ausschnitt */
  }

  .hero-content {
    padding: 48px 28px;
  }

  .content-section {
    padding: 64px 28px;
  }

  .site-footer {
    padding: 28px 28px;
  }
}