/* ── Lebenslauf ── */

.cv-container {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ── Head (photo, name, contact chips, summary) ── */

.cv-hero {
  position: relative;
  overflow: hidden;

  .cv-glow-blue {
    top: -140px;
    left: -40px;
    width: 520px;
    height: 400px;
  }

  .cv-glow-amber {
    top: -100px;
    right: 0;
    width: 420px;
    height: 360px;
  }
}

.cv-head {
  position: relative;
  padding-top: 64px;
  padding-bottom: 48px;
  display: flex;
  gap: 32px;
  align-items: center;

  h1 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
  }
}

.cv-photo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 16px 40px -12px rgba(60, 50, 20, 0.35);
  flex-shrink: 0;
  animation: rise 0.6s ease both;
}

.cv-head-text {
  animation: rise 0.6s 0.08s ease both;
}

.cv-headline {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 14px;
}

.cv-contacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;

  a {
    border: 1px solid var(--line2);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;

    &:hover {
      border-color: var(--accent-ink);
      color: var(--accent-ink);
    }
  }
}

.cv-summary-wrap {
  position: relative;
  padding-bottom: 40px;
}

.cv-summary {
  font-size: 17px;
  line-height: 1.7;
  color: var(--prose);
  margin: 0;
  max-width: 760px;
  text-wrap: pretty;
  animation: rise 0.6s 0.16s ease both;

  strong {
    color: var(--text);
  }
}

/* ── Two-column grid: timeline + sidebar ── */

.cv-grid {
  padding-top: 16px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Experience timeline ── */

.cv-experience h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 26px;
}

.cv-station {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
}

.cv-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cv-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line2);
  margin-top: 6px;
  flex-shrink: 0;
  transition: background-color 0.35s;
}

.cv-station.is-ongoing .cv-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 69, 216, 0.18);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.cv-connector {
  flex: 1;
  width: 2px;
  background: var(--line);
  transition: background-color 0.35s;
}

.cv-station-body {
  padding-bottom: 36px;

  &.is-last {
    padding-bottom: 0;
  }

  h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px;
  }
}

.cv-period {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 6px;
}

.cv-station.is-ongoing .cv-period {
  color: var(--accent-ink);
}

.cv-location {
  font-size: 14px;
  color: var(--faint);
  margin: 0 0 10px;
}

.cv-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--prose);
  margin: 0 0 14px;
}

.cv-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Sidebar ── */

.cv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;

  h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
  }
}

.cv-education-card {
  border-radius: 18px;
  padding: 24px;

  .cv-period {
    color: var(--accent-ink);
  }

  .cv-degree {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 2px;
  }

  .cv-school {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 10px;
  }

  .cv-focus {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
  }
}

.cv-languages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.cv-language {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  .cv-language-name {
    font-weight: 600;
  }

  .cv-language-level {
    color: var(--muted);
    text-align: right;
  }
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14.5px;

  .cv-item-name {
    font-weight: 600;
    margin: 0;
  }

  .cv-item-meta {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0;
  }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .cv-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .cv-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cv-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 36px;
  }
}
