:root {
  --mainColor: #2e2e2e;
  --goldColor: #ffaa00;
  --headerHeight: 60px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--goldColor);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #ffb500;
}
::-webkit-scrollbar-track {
  background: var(--mainColor);
  border-radius: 10px;
}

/* Header */
.header {
  height: var(--headerHeight);
  width: 100%;
  background-color: var(--mainColor);
  align-items: center;
  justify-content: space-between;
  display: flex;
  box-sizing: border-box;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 9999;
  padding: 0 20px;
}
.header h1 {
  color: #ffffff;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
}
.header h1::after {
  content: "•";
  color: var(--goldColor);
  font-size: 30px;
  margin-left: 5px;
  margin-top: 10px;
}
h1 .subtitle {
  font-size: 28px;
  margin-left: 20px;
}
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
}
.la-img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  position: absolute;
  margin-top: -3px;
}
li:hover .la-img {
  transform: scale(1.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Main content */
.body-index {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #444444 35%, white 35%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding-top: var(--headerHeight);
  gap: 60px;
}

/* Card */
.card {
  background: var(--mainColor);
  width: 310px;
  padding: 20px 20px 50px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 2.1);
}
.profile-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
}
.profile-img img:hover {
 cursor:pointer;
 transform: scale(1.05);
}
.card h2 {
  font-size: 22px;
  margin: 10px 0;
  font-weight: bold;
  color: #ffffff;
}
.card span {
  font-weight: normal;
  border-bottom: 3px solid var(--goldColor);
  padding-bottom: 5px;
}
.job {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 19px;
}

/* Card text */
.card-text {
  background: #ffffff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  text-align: center;
}
.card-text h1 {
  color: var(--mainColor);
  font-size: 80px;
  margin: 0;
}
.card-text h2 {
  color: var(--mainColor);
  font-size: 35px;
}
.CV-button {
  background-color: var(--goldColor);
  color: #ffffff;
  border: 2px solid var(--goldColor);
  padding: 10px 20px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: 30px;
}
.CV-button:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--mainColor);
  color: #ffffff;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  max-height: var(--headerHeight);
}
.footer-content {
  display: flex;
  align-items: center;
  width: 100%;
}
.all-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.number,
.email,
.social-icons {
  display: flex;
  gap: 20px;
  padding-right: 40px;
}
.number a,
.email a,
.social-icons a {
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
}
.number-text,
.email-text {
  font-size: 12px;
  text-align: center;
}
.fa-xing:hover {
  color: #026466;
}
.fa-xing {
  text-shadow: 0px 0px 10px #026466;
}
.fa-linkedin:hover {
  color: #0077b5;
}
.fa-linkedin {
  text-shadow: 0px 0px 5px #0077b5;
}
.fa-instagram:hover {
  background: radial-gradient(circle, #e1306c, #833ab4);
}
.fa-instagram {
  text-shadow: 0px 0px 7px #e1306c, 2px 2px 10px #833ab4;
}

/* ✅ Media Query for Mobile */
@media (max-width: 768px) {
  html,
  body {
    font-size: 14px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
  }
  .body-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px 10px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    background: linear-gradient(to bottom, #ffffff 40%, white 40%);
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    margin-top: calc(var(--headerHeight) + 10px);
  }
  .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 10px 20px;
    text-align: center;
    background-color: var(--mainColor);
    /*immer oben*/
    position: fixed;
    z-index: 9999;
  }
  .header .subtitle {
    display: none;
  }
  .header nav {
    justify-content: center;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin-right: 25px;
  }

  nav ul li {
    margin: 0;
  }
  .la-img {
    margin-top: -13px;
  }
  .card {
    width: 90%;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
  }
  .card-text {
    width: 90%;
    height: min-content;
    padding-bottom: calc(var(--headerHeight) + 60px);
  }
  .card-text h1 {
    font-size: 40px;
  }
  .card-text h2 {
    font-size: 24px;
  }
  .profile-img img {
    width: 150px;
    height: 150px;
  }
  .CV-button {
    margin-top: 5px;
    margin-bottom: 20px;
  }
  footer {
    display: relative;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding-left: 20px;
  }

  .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-content p {
    display: none;
  }
  .number-text,
  .email-text {
    font-size: 8px !important;
  }
}
