/* Basis-Styles */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, #111111, #505050);
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 32px 64px 0 20px;
}

nav a {
  margin-left: 48px;
  color: white;
  text-decoration: none;
}

nav a:hover {
  font-weight: bold;
}

.logo-link {
  text-decoration: none;
}

.logo {
  border-radius: 50%;
  max-width: 80px;
  margin-left: 20px;
}

/* Galerie */
.gallery-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
  padding: 20px;
}

.gallery-item {
  width: 340px;
  height: 800px;
  border-radius: 50px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, margin 0.4s ease;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.gallery-item:hover {
  transform: scale(1.1);
  z-index: 2;
}

.gallery-container:hover .gallery-item {
  margin-left: -10px;
  margin-right: -10px;
  opacity: 0.7;
}

.gallery-container .gallery-item:hover {
  margin: 0 20px;
  opacity: 1;
}

.image-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 10px;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .image-title {
  opacity: 1;
  transform: translateY(0);
}

.gallery-link {
  text-decoration: none;
  color: inherit;
}

/* Startseite / Über mich */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 20px;
}

.meimg-bereich {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.meimg {
  width: 100%;
  max-width: 500px;
  border-radius: 60px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

.text {
  flex: 1 1 400px;
  margin: 32px;
  color: white;
}

/* Einblick Layout */
.einblick-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.einblick-text {
  flex: 1 1 400px;
  color: white;
  font-size: 1.2rem;
}

.einblick-bild {
  flex: 1 1 400px;
  text-align: center;
}

.einblick-bild img {
  width: 100%;
  max-width: 700px;
  border-radius: 60px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Kontaktformular */
.kontakt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.contact-me-titel {
  text-align: center;
  margin-bottom: 20px;
}

.kontakt-bild img {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  display: block;
}

.kontakt-formular {
  max-width: 700px;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,1);
}

.kontakt-formular input,
.kontakt-formular textarea {
  padding: 15px;
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  color: white;
  font-size: 1rem;
}

.kontakt-formular button {
  padding: 10px;
  background-color: white;
  color: black;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  width: 200px;
  margin: 32px auto 0;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
}

.social-icons ion-icon {
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.social-icons ion-icon:hover {
  transform: scale(1.2);
}

/* Responsive Anpassungen */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    margin: 20px;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
  }

  .gallery-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery-item {
    width: 90vw;
    height: 400px;
  }

  .meimg {
    max-width: 90%;
    margin: 0 auto;
  }

  .text {
    margin: 16px;
  }

  .einblick-section {
    flex-direction: column;
    padding: 20px;
  }

  .kontakt-formular {
    width: 90%;
  }

  .kontakt-bild img {
    width: 90%;
  }
}