
@font-face {
  font-family: "Switzer";
  src: url("./fonts/Switzer-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("./fonts/Switzer-Regular.woff2") format("woff2");
  font-weight: 400;
}

header {
  display: flex;
  justify-content: space-between;
  font-family: "Switzer", sans-serif;
  font-size: 10pt;
}

.name a {
  font-weight: 500;
  text-decoration: none;
  color: #7B2C13;
}

.name a:hover {
  color: black;
}

.info a {
  font-weight: 400;
  color: black;
  text-decoration: none;
}

.info a:hover {
  text-decoration: underline;
}


main {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 5rem;
}

.project-info {
  width: 80%;
  flex: 0.7; 
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 1rem; 
  row-gap: 0.3rem;  
  justify-content: start; 
  position: sticky;
  top: 2rem;
  z-index: 10; 
}

.ue-title {
  font-family: "Switzer", sans-serif;
  font-size: 10pt;
  color: mediumturquoise;

}

.ue-category {
  font-family: "Switzer", sans-serif;
  font-size: 10pt;
  color: mediumturquoise;
}

.ue-words {
  font-family: "Switzer", sans-serif;
  font-size: 10pt;
  color: mediumturquoise;
  margin-bottom: 0.3rem; /* Abstand zum Text darunter */
}

.category {
  font-family: "Switzer", sans-serif;
  font-size: 10pt;
  line-height: 1.5;
}

.project-description {
  flex: 0 1 700px;
  width: 100%;
  max-width: 700px;
  margin-bottom: 4rem;
  margin-left: 2rem; 
}



.project-description a {
  text-decoration: none;
  color: black;
}

.project-description a:hover {
  color: red;
}


/* Styling für die generierte Gallerie */


.gallery {
    display: grid;
    grid-gap: 1rem;
    text-align: center;
    grid-template-columns: repeat(2, 1fr);
    margin-left: 3rem;
    margin-right: 3rem;


    grid-template-areas:
      "area-0 ."
      ". area-1"
      "area-2 area-3"
      "area-4 area-5";

   
}



.gallery-item {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;

}


.image-description {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    margin-top: 5px;
    text-align:left;
    line-height: 1;
    color: black;
    text-decoration: none;
}

/*Styling für extra bilder*/

.extra-gallery-1 {
    display: grid;
    gap: 1rem; /*first for rows, second zwischen den bildern*/
    grid-template-columns: repeat(1, 1fr);
    margin-left: 3rem;
    margin-right: 3rem;
    }

.extra-gallery-1 img {
  margin-bottom: 3rem;
}

 .extra-description{
    font-family: "Switzer", sans-serif;
    font-size: 8pt;
    margin-bottom: 3rem; 
    margin-left: 3rem;
    margin-top:-2rem;
    }


  .extra-description-1 {
    font-family: "Switzer", sans-serif;
    font-size: 8pt;
    margin-bottom: 3rem; 
    margin-top: -4rem;
    }



/* CSS for the contact popup */
.contact-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(2deg); /* Add rotation transform */
    background: url('data/visitenkarte.jpg') no-repeat center center;
    background-size: cover; /* This ensures the background image covers the entire element */
    padding: 0; /* Remove padding to make it fully display the background image */
    width: 500px; /* Set the width and height of the pop-up as needed */
    height: 274px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 9999;
  }
  
  
    .contact-content {
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: flex-end; /* Align content to the bottom */
      height: 100%; /* Ensure the container takes up the full height */
    }
  
  .contact-content a {
    color: black; /* Change this color to your desired color */
    
  }
  
  
  .contact-content a:hover {
    text-decoration: underline; /* Add underline on hover */
  }
  
  
  
.bottom-subline {
    cursor: pointer;
  }

.bottom-subline {
  cursor: pointer;
  font-family: "Switzer", sans-serif;
  font-weight: 500;
  color: #7B2C13;
  padding: 0.2rem;
  font-size: 10pt;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 1rem;
  background-color: white;
}

.bottom-subline a {
  text-decoration: none;
  font-weight: normal;
  margin-left: 1rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {

  main {
    display: block;
    width: 100%;
  }

    header {
    font-size: 12pt;
  }

  .bottom-subline {
    font-size: 12pt;
  }


  .project-info {
    width: 100%;
    height: auto !important; 
    min-height: 0 !important;
    position: static;
    margin-bottom: 1.5rem;
  }

  .project-description {
    width: 100%;
    max-width: 100%;
    height: auto !important; 
    min-height: 0 !important;
    margin-left: 0;
    margin-bottom: 2rem; 
  }

  .gallery {
    grid-template-columns: repeat(1, 1fr);
    margin-left: 0;
    margin-top: 0;
    margin-right: 0;
  }

  .gallery-item {
    margin: 0 0 1.5rem 0;
  }

  .extra-gallery-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    }

}
