#filter-form:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  transition: all 0.3s ease;
}

#filter-form label:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-item:where(:not(#oit-home-host *),[slot],[slot] *){
  position: relative;
  min-width: 290px;
  min-height: 385px;
  background-color: black;
  border: 0.5px solid white;
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.project-item:hover:where(:not(#oit-home-host *),[slot],[slot] *){
  transform: translateY(-5px);
  border: 2px solid white;
}

.project-thumbnail:where(:not(#oit-home-host *),[slot],[slot] *){
  align-self: center;
  margin-top: auto;
  transition: transform 0.3s ease;
}

.project-thumbnail img:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 230px;
  height: 230px;
  margin-bottom: 10px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.project-item p:where(:not(#oit-home-host *),[slot],[slot] *){
  font-weight: thin;
  color: white;
  margin: 0 0 2px 0;
  text-align: left;
  width: 100%;
  transition: color 0.3s ease;
}

#project-list:where(:not(#oit-home-host *),[slot],[slot] *){
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  grid-gap: 20px;
  max-width: 100%;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.project-item.shifted:where(:not(#oit-home-host *),[slot],[slot] *){
  top: 30px;
}

#project-list.filtered .project-item.shifted:where(:not(#oit-home-host *),[slot],[slot] *){
  top: 0px;
  opacity: 1;
}

/* ========== Kundenprojekte-Bereich (.oitproject-*) ========== */

.oitproject-container:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 40px 20px;
    background-color: #000; /* dunkel */
    font-size: 17px;
    display: flex;
    justify-content: center;
}

.oitproject-box:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 5px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
    color: white;
}

/* Header */
.oitproject-header-layout:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
    color: white;
}

.oitproject-header-left:where(:not(#oit-home-host *),[slot],[slot] *){
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.oitproject-header-right:where(:not(#oit-home-host *),[slot],[slot] *){
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.oitproject-subtitle:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 20px;
    color: white;
}

/* Layout */
.oitproject-layout:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Bildbox */
.oitproject-image-box:where(:not(#oit-home-host *),[slot],[slot] *){
    flex: 1 1 60%;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
}

.oitproject-image-box img.project-image:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sidebar */
.oitproject-sidebar:where(:not(#oit-home-host *),[slot],[slot] *){
    flex: 1 1 35%;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
    color: white;
}

.oitproject-sidebar strong:where(:not(#oit-home-host *),[slot],[slot] *){
    font-weight: 600;
}

/* Kontakt */
.oitproduct-contact:where(:not(#oit-home-host *),[slot],[slot] *){
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.oitproduct-contact-img:where(:not(#oit-home-host *),[slot],[slot] *){
    display: block;
    margin: 0 auto 10px;
    border-radius: 50%;
}

/* Info & Kategorien */
.oitproject-info:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproject-categories:where(:not(#oit-home-host *),[slot],[slot] *){
    margin: 20px 0;
    text-align: center;
    color: white;
}
.oitproject-categories .oitproject-category-item:where(:not(#oit-home-host *),[slot],[slot] *){
    display: block;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin: 4px 4px 0 0;
	width: fit-content;
}

.oitproduct-cat-badges:where(:not(#oit-home-host *),[slot],[slot] *){
	display:flex;
	flex-direction:column;
	align-items:center;
}



/* Hauptinhalt */
.oitproject-main-content:where(:not(#oit-home-host *),[slot],[slot] *){
	background: rgba(255, 255, 255, 0.2);
    padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(6.8px);
    margin-bottom: 8px;
    flex: 1 1 100%;
    color: white;
}

/* Beschreibung */
.oitproject-description:where(:not(#oit-home-host *),[slot],[slot] *){
    line-height: 1.6;
    color: white;
}

.oitproject-description h2:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 24px;

    color: white;
}

.oitproject-description p:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 17px;
    margin-bottom: 15px;
    color: white;
}

/* Listen */
.oitproject-description ul:where(:not(#oit-home-host *),[slot],[slot] *){
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
    color: white;
}

/* .oitproject-description ul li {
	
} */



/* Kategorien */
.oitproject-categories span:where(:not(#oit-home-host *),[slot],[slot] *){
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    margin: 0px;
    color: white;
    font-size: 0.95em;
}

/* Ansprechpartner */
.oitproduct-contact:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 10px;
    font-size: 1.1rem;
}

.oitproduct-contact img:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.oitproduct-contact p:where(:not(#oit-home-host *),[slot],[slot] *){
    margin: 0;
    font-size: 1rem;
    color: white;
}
.oitproject-categories:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproject-info:where(:not(#oit-home-host *),[slot],[slot] *){
	text-align:center;
}

/* Editor ausblenden bei Custom Post Type 'custom_project' */
.post-type-custom_project #postdivrich:where(:not(#oit-home-host *),[slot],[slot] *){
    display: none;
}
/* =============================================================================
   MEDIA GALLERY STYLES - FANCYBOX VERSION (BEREINIGT)
   ============================================================================= */

/* Media Gallery Grid */
.project-media-gallery:where(:not(#oit-home-host *),[slot],[slot] *){
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.project-media-gallery[data-columns="2"]:where(:not(#oit-home-host *),[slot],[slot] *){
    grid-template-columns: repeat(2, 1fr);
}

.project-media-gallery[data-columns="4"]:where(:not(#oit-home-host *),[slot],[slot] *){
    grid-template-columns: repeat(4, 1fr);
}

.project-media-gallery[data-columns="5"]:where(:not(#oit-home-host *),[slot],[slot] *){
    grid-template-columns: repeat(5, 1fr);
}

/* Responsive */
@media (max-width: 768px) {
    .project-media-gallery:where(:not(#oit-home-host *),[slot],[slot] *){
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .project-media-gallery:where(:not(#oit-home-host *),[slot],[slot] *){
        grid-template-columns: 1fr !important;
    }
}

/* Media Gallery Items */
.media-gallery-item:where(:not(#oit-home-host *),[slot],[slot] *){
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.media-gallery-item:hover:where(:not(#oit-home-host *),[slot],[slot] *){
    transform: translateY(-5px);
}

.media-gallery-item img:where(:not(#oit-home-host *),[slot],[slot] *),
.media-gallery-item video:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.media-gallery-item:hover img:where(:not(#oit-home-host *),[slot],[slot] *),
.media-gallery-item:hover video:where(:not(#oit-home-host *),[slot],[slot] *){
    transform: scale(1.05);
}

.media-gallery-item .video-thumbnail:where(:not(#oit-home-host *),[slot],[slot] *){
    position: relative;
}

.media-gallery-item .video-play-overlay:where(:not(#oit-home-host *),[slot],[slot] *){
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    pointer-events: none; /* Verhindert Click-Interferenz */
}

.media-gallery-item:hover .video-play-overlay:where(:not(#oit-home-host *),[slot],[slot] *){
    transform: translate(-50%, -50%) scale(1.1);
}

/* FancyBox Custom Styling */
.fancybox-toolbar:where(:not(#oit-home-host *),[slot],[slot] *){
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4)) !important;
    backdrop-filter: blur(10px) !important;
}

.fancybox-button:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.fancybox-button:hover:where(:not(#oit-home-host *),[slot],[slot] *){
    transform: scale(1.1) !important;
}

.fancybox-navigation .fancybox-button:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
}



/* FancyBox Container Styling */
.fancybox-container:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(5px) !important;
}

.fancybox-bg:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(5px) !important;
}

/* FancyBox Caption Styling */
.fancybox-caption:where(:not(#oit-home-host *),[slot],[slot] *){
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important;
    color: white !important;
    padding: 20px !important;
    font-size: 16px !important;
    text-align: center !important;
}

/* FancyBox Thumbnails */
.fancybox-thumbs:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
}

.fancybox-thumb:where(:not(#oit-home-host *),[slot],[slot] *){
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.fancybox-thumb:hover:where(:not(#oit-home-host *),[slot],[slot] *),
.fancybox-thumb.fancybox-thumb-active:where(:not(#oit-home-host *),[slot],[slot] *){
    border-color: #f07e31 !important;
    transform: scale(1.05) !important;
}

/* FancyBox Loading Animation */
.fancybox-loading:where(:not(#oit-home-host *),[slot],[slot] *){
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 3px solid #f07e31 !important;
}

/* FancyBox Close Button */
.fancybox-close-small:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(255, 68, 68, 0.8) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}

.fancybox-close-small:hover:where(:not(#oit-home-host *),[slot],[slot] *){
    transform: scale(1.1) !important;
}

/* Gallery Container Styling */
.oitproject-media-gallery-section:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(6.8px);
	width: 100%;
}

.oitproject-media-gallery-section h4:where(:not(#oit-home-host *),[slot],[slot] *){
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Mobile Optimierungen für FancyBox */
@media (max-width: 768px) {
    .fancybox-caption:where(:not(#oit-home-host *),[slot],[slot] *){
        font-size: 14px !important;
        padding: 15px !important;
    }
    
    .fancybox-button:where(:not(#oit-home-host *),[slot],[slot] *){
        width: 40px !important;
        height: 40px !important;
    }
    
    .fancybox-toolbar:where(:not(#oit-home-host *),[slot],[slot] *){
        padding: 8px !important;
    }
	
	.oitproject-container:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 20px 20px
}
	
}

/* Verhindert Scroll-Probleme */
.fancybox-active:where(:not(#oit-home-host *),[slot],[slot] *){
    overflow: hidden !important;
}

/* Custom FancyBox Animationen */
@keyframes fancyboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fancybox-slide--current .fancybox-content:where(:not(#oit-home-host *),[slot],[slot] *){
    animation: fancyboxZoomIn 0.3s ease-out;
}

/* Dark Theme Anpassungen */
.fancybox-infobar:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    backdrop-filter: blur(10px) !important;
}

.oitproject-header-left:where(:not(#oit-home-host *),[slot],[slot] *){
	display:none;
}