/* ================================
   BASE
================================ */

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

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background: linear-gradient(to bottom, #f8fafc, #eef2f7);
  line-height: 1.65;
  color: #1e293b;
}

/* ================================
   LAYOUT
================================ */

.main {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 1200px;
  margin: 60px auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.main_content {
  padding: 80px 90px;
  min-width: 0;
}

/* ================================
   TYPOGRAPHY
================================ */

.title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 30px;
}

.about_position {
  font-weight: 600;
  font-size: 20px;
  color: #64748b;
  margin-bottom: 20px;
}

.about_name {
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 25px;
}

.profil {
  font-size: 15px;
  color: #475569;
  max-width: 650px;
  margin-bottom: 50px;
}

/* ================================
   SECTIONS SPACING
================================ */

.about,
.work,
.bildungsweg,
.w_kenntnisse {
  margin-bottom: 60px;
}

/* ================================
   PERSONAL DATA
================================ */

.persönliche_daten {
  font-size: 14px;
  color: #334155;
}

.pd_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd_list_item {
  margin-bottom: 6px;
  word-break: break-word;
}

.pd_type {
  font-weight: 600;
  margin-right: 6px;
}

/* ================================
   TIMELINE (Work + Education)
================================ */

.work,
.bildungsweg {
  position: relative;
  padding-left: 40px;
}

.work::before,
.bildungsweg::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.work > div,
.bildungsweg > div {
  position: relative;
  padding: 25px 0 25px 20px;
}

.work > div::before,
.bildungsweg > div::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 30px;
  width: 10px;
  height: 10px;
  background: #1d4ed8;
  border-radius: 50%;
}

.work > div:hover {
  background: #f8fafc;
  border-radius: 8px;
  transition: 0.2s ease;
}

/* ================================
   WORK CONTENT
================================ */

.period {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.organization,
.university {
  font-weight: 700;
  font-size: 16px;
  color: #1d4ed8;
  margin: 8px 0;
}

.work_position {
  font-weight: 600;
  font-size: 15px;
  color: #475569;
}

.work_list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.work_list_item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
}

.work_list_item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: #1d4ed8;
  border-radius: 50%;
}

/* ================================
   KEYWORDS
================================ */

.keyword_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.keyword_list li {
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

/* ================================
   SIDEBAR
================================ */

.sidebar {
  background: linear-gradient(180deg, #0f172a, #0b1220);
  padding: 70px 35px;
  color: #ffffff;
}

.photo {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 0 auto 50px auto; /* центрирование */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sidebar_title {
  font-size: 20px;
  margin-bottom: 20px;
}

.contacts,
.tech_skills,
.soft_skills {
  margin-bottom: 45px;
}

.contact_type {
  font-weight: 600;
}

.contact_link {
  color: #ffffff;
  opacity: 0.7;
  transition: 0.2s;
}

.contact_link:hover {
  opacity: 1;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 992px) {
  .main {
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .sidebar {
    text-align: center;
  }

  .main_content {
    padding: 40px 30px;
  }

  .work,
  .bildungsweg {
    padding-left: 0;
  }

  .work::before,
  .bildungsweg::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .about_name {
    font-size: 30px;
  }

  .about_position {
    font-size: 18px;
  }

  .main_content {
    padding: 25px;
  }
}

/* ================================
   PRINT
================================ */

@media print {
  body {
    background: white;
  }

  .main {
    margin: 0;
    box-shadow: none;
  }

  .work > div:hover {
    background: none;
  }
}
