body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-family: "Montserrat", sans-serif;
  background-color: #e9eaf3;
  color: #333;
  line-height: 1.6;
}
.header-container {
  display: flex;
  align-items: center; /* vertikal zentrieren */
  justify-content: space-between; /* Logo links, Text daneben */
  gap: 0rem; /* Abstand zwischen Logo und Text */
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
.logo {
  width: auto;
}
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1c2a4c;
  background: linear-gradient(to top right, #1c2a4c, #0084c7);
  width: (100% - 1rem);
  min-width: (
    100vw - 1rem
  ); /* sorgt dafür, dass der Verlauf auch bei kleinen Geräten durchzieht */
  color: white;
  padding: 1rem 1rem;
  text-align: center;
}

/* rechte Kopf als Leerfeld => wird ersetzt durch Kontakt-Button */
.spacer {
  width: 200px; /* gleiche Breite wie Logo */
}
.header-button {
  display: flex;
  align-items: center;
}

.contact-btn {
  background-color: white;
  color: #1c2a4c;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, text-decoration 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
  background-color: #e6e6e6;
  text-decoration: none; /* kein Unterstrich beim Hover */
}

.whitespace {
  margin-top: 10rem;
}
.header-text {
  position: relative;
}
header h1 {
  margin: 0;
  font-size: 2rem;
}
header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
}

a:link,
a:visited {
  color: #333;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
/* Sichtbare Section */
section.visible {
  opacity: 1;
  transform: translateY(0);
}

section.headline {
  max-width: 900px;
  margin: 3rem auto;
  margin-top: 5rem;
  padding: 1.5rem 1rem;
  background-color: #f5f7fb;
  border-left: 5px solid #0084c7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

section.headline h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  color: #1c2a4c;
  line-height: 1.4;
}

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
  cursor: default;
}

/* Kontaktformular */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input,
textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  background-color: #1c2a4c;
  /* background: linear-gradient(to top right, #1c2a4c, #0084c7); */
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
button:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
  margin-top: 3rem;
}

/* Foto mit Blur-Effekt*/
.image-wrapper {
  position: relative;
  width: 400px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.blur-bg {
  position: absolute;
  width: 250px;
  height: 250px;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.03); /* macht den Rand weich */
  z-index: 1;
  opacity: 0.8;
}

.sharp-img {
  position: relative;
  width: 250px;
  z-index: 2;
  border-radius: 8px;
}

.popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0084c7;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.hidden {
  display: none;
}

/* vita style */
.timeline {
  position: relative;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1.5px solid #3b5a82;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-point {
  position: absolute;
  left: -1.91rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  /* background-color: #0084c7; */
  background-color: #1c2a4c;
  /* border: 3px solid #1c2a4c; */

  border-radius: 50%;
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-content p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #555;
}

/* für kleinere Geräte */
@media (max-width: 700px) {
  .skills {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .headline h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .header-button {
    display: none;
  }

  .whitespace {
    margin-top: 5rem;
  }
  .spacer {
    display: none; /* wird auf Mobilgeräten nicht mehr gebraucht */
  }

  .logo img {
    width: 150px; /* etwas kleiner auf kleinen Bildschirmen */
    margin-bottom: 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 1rem;
  }

  .cta-img {
    order: -1; /* Bild nach oben */
    text-align: center;
  }

  .cta-img img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .cta-text {
    order: 0;
  }
}
