/* Grundlayout für die Projekte-Seite */
#projects {
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    /* Entfernen des Rahmens um den gesamten Bereich */
    background-color: transparent;
    
  }
  
body {
  background: linear-gradient(rgba(30,30,40,0.8), rgba(30,30,40,0.8)),
    url("assets/code-1839406_1280.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}


  #projects h1 {
    color: #0ef;
    margin-bottom: 2rem;
  }
  
  .projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .project {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Rahmen um jedes Projekt */
    border: 2px solid white; /* Füge einen dezenten Rahmen hinzu */
  }
  
  .project:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  }
  
  .project-info {
    max-width: 50%;
    text-align: left;
  }
  
  .project-info h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
  }
  
  .project-info p {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
  }
  
  .project-info .btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .project-info .btn:hover {
    background-color: #007bff;
  }
  
  .project-image img {
    width: 300px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
  }
  

/*Mobile Version*/

  @media (max-width: 768px) {
    .projects-container {
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    padding: 0;
    }
    .project {
    flex-direction: column;
    align-items: center;
    width: 130%;
    max-width: 130%;
    margin-left: 20px;
    margin-right: 20px;
    }
    
  
    .project-info {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    }
  
    .project-info h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    }
  
    .project-info p {
    font-size: 1rem;
    color: white;
    margin-bottom: 1.5rem;
    }
  
    .project-info .btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    }
  
    .project-info .btn:hover {
    background-color: #007bff;
    }


    .project-image {
    width: 100%;
    display: flex;
    justify-content: center; /* Bild zentrieren */
    align-items: center;
    margin-bottom: 1rem;
    }
    .project-image img {
      width: 300px;
      height: 300px;
      margin-top: 1rem;
    }
  
  }
  
  