.projekt-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projekt-title {
  text-align: center;
  margin-bottom: 2vw;
}

.projekt-title h2 {
  margin-bottom: 0.5rem;
  color: var(--title-color);
}

.projekt-text-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.projekt-text {
  flex: 1 1 calc(50% - 20px);
  padding: 20px;
  box-sizing: border-box;
  position: relative;

  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: 0px 8px 20px var(--hover-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projekt-text:hover {
  transform: scale(1.05);
}

.projekt-text h3 {
  margin: 15px 0 15px 0;
  text-align: center;
}

.projekt-text p {
  line-height: 1.5;
  text-align: left;
}

.projekt-img-container {
  display: none;
}

@media screen and (max-width: 768px) {
  .projekt-text {
    flex: 1 1 100%;
  }

  .projekt-container p:first-of-type {
    max-width: 100%;
  }

  .projekt-img-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .projekt-img {
    height: 200px;
    max-width: 200px;
    border-radius: 50%;
    overflow: hidden;
  }

  .projekt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Impressum */
.home-button-impressum {
    position: absolute;
    top: 3vw; 
    right: 3vw; 
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.295); 
    color: rgba(255, 255, 255, 0.8); 
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1000; 
}

.home-button-impressum:hover {
    background-color: var(--secondary-color); 
}

.projekt-text a {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .home-button-impressum {
        padding: 5px 10px;
        font-size: 14px;
    }

    .projekt-text a {
        font-size: 0.8rem;
    }
}