body{
  font-family: "Verdana", sans-serif !important;
}

.projekt-bc-out{
  margin-bottom: 100px;
}

.projekt-details-wrapper{
  display: flex;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  color: #000;
}

.projekt-details-wrapper section:first-of-type h2.border_cl{
  border-bottom: none;
  padding-bottom: 0;
}

.projekt-details-wrapper section:not(:first-of-type) h2.border_cl{
  border-bottom: none;
  border-top: 1px solid #000;
  padding-top: 50px;
  margin-bottom: 10px;
}

.projekt-main{
  flex: 2;
  margin-right: 40px;
}

.projekt-main section{
  margin-bottom: 40px;
}

.projekt-main section h2{
  font-weight: 900;
  font-size: 20px;
  text-align: left;
  margin-bottom: 15px;
  border-bottom: 1px solid #E98202;
  padding-bottom: 10px;
  letter-spacing: 0.05em;
}

.projekt-main section .content-wrapper{
  display: flex;
  padding-bottom: 27px;
}

.projekt-main section img{
  width: 351px;
  object-fit: cover;
  margin-top: 3px;
  margin-right: 20px;
}

.projekt-main section .text-content{
  line-height: 1.4;
  max-width: calc(100% - 200px);
  margin-left: 10px !important;
}

.text-content p{
  margin: 0;
}

/* Sidebar */
.projekt-sidebar{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 35px;
  font-size: 0.9rem;
}

.projekt-sidebar .kontakt-box,
.projekt-sidebar .partner-box,
.projekt-sidebar .link-empfehlungen{
  border: 1px solid #E98202;
  border-radius: 6px;
  padding: 30px 20px 30px 30px;
  color: #1c1c1c;
}

.projekt-sidebar h3{
  margin-top: 0;
  padding-bottom: 15px;
  font-size: 24px;
  font-weight: 400;
  border-bottom: none;
  margin-bottom: 10px;
}

.kontakt-box p,
.partner-box p,
.partner-box strong{
  margin: 0 0 8px 0;
  font-weight: normal;
}

/* Downloads */
.downloads-box select{
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4D4D4 100%);
  font-size: 16px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  position: relative;
}

#download{
  font-size: 18px;
}

.downloads-box select option{
  font-size: 16px;
  padding: 8px;
}

.downloads-box select option:hover,
.downloads-box select option:checked{
  background-color: rgba(0,0,0,0.1);
  color: #000;
}

.downloads-box p:empty{
  display: none !important;
}

.downloads-box p{
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#downloads-custom{
  max-width: 100%;
}

#downloads-custom select#download{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#downloads-custom select#download option{
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}

/* Link Empfehlungen */
.link-empfehlungen{
  box-sizing: border-box;
  background-color: #E98202;
  color: #fff;
  border-radius: 10px;
  padding: 45px 40px !important;
}

.link-empfehlungen h3{
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

.link-empfehlungen a{
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  min-height: 56px;
  color: #fff;
  padding: 15px;
  gap: 10px;
  font-weight: 400;
  border: 1px solid #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.link-empfehlungen br{
  display: none;
}

.link-empfehlungen a:hover{
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Download button (if used) */
.download-button{
  display: flex;
  align-items: center;
}

.download-button .button{
  display: flex;
  margin-left: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  gap: 90px;
  width: 100%;
  color: #000;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4D4D4 100%);
  border-radius: 8px;
}

.download-button .button span{
  font-size: 18px;
  color: #000;
  font-weight: 400;
}

/* Mediathek */
div#mediathek{
  text-align: center;
  margin-bottom: 50px;
}

div#mediathek h2{
  font-size: 28px;
  font-weight: 700;
}

/* Gallery overlay */
.image-overlay-wrapper{
  position: relative;
  display: inline-block;
}

.image-overlay-wrapper img{
  display: block;
  width: 100%;
  height: auto;
}

.image-overlay-wrapper .zoom-icon{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #fff;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.image-overlay-wrapper:hover .zoom-icon{
  opacity: 1;
}

/* Copyright */
.image-with-copyright{
  position: relative;
  display: inline-block;
  width: 351px;         /* same as image width */
  max-width: 100%;
  line-height: 0;       /* gap remove */
}

.image-with-copyright img{
  display: block;
  width: 100%;
  height: auto;
}

.image-with-copyright .image-copyright{
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 6px;
  border-radius: 3px;
  max-width: 95%;
  pointer-events: none;
}

/* Mobile */
@media (max-width:768px){
  .projekt-details-wrapper{
    flex-direction: column !important;
  }

  .content-wrapper{
    flex-direction: column;
  }

  .image.con{
    height: 100%;
    width: 100%;
  }

  .projekt-main section img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 3px;
    margin-right: 0;
  }

  .image-with-copyright{
    width: 100%;  /* mobile full */
  }

  .projekt-main section .text-content{
    max-width: 100%;
    margin-left: 0 !important;
  }

  .projekt-details-wrapper > p:empty{
    display: none !important;
  }

  .kontakt-box.border_cl{
    margin-top: 0;
  }

  .kundenstimme-slide{
    flex-direction: column;
  }

  .projekt-bc-out{
    margin-bottom: 0;
  }
}

#downloads-custom {
    display: flex !important;
    flex-direction: column !important; 
    align-items: flex-start;
    gap: 8px;
}

#downloads-custom .download-title {
    margin: 0;
    white-space: nowrap; 
}

