#filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  transition: all 0.3s ease;
}

#filter-form label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}



button, input, select, textarea {
    background: #266586;
    padding: 15px;
    color: #fff;
    border: none;
    font-size: 16px;
    font-family: 'Simdoran AH' !important;
}

.project-item {
  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 {
  transform: translateY(-5px);
  border: none;
}

.project-thumbnail {
  align-self: center;
  margin-top: auto;
  transition: transform 0.3s ease;
}

.project-thumbnail img {
  width: 230px;
  height: 230px;
  margin-bottom: 10px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.project-item p {
  font-weight: thin;
  color: white;
  margin: 0 0 2px 0;
  text-align: left;
  width: 100%;
  transition: color 0.3s ease;
}

#project-list {
  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 {
  top: 30px;
}

#project-list.filtered .project-item.shifted {
  top: 0px;
  opacity: 1;
}

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

.oitproject-container {
    padding: 40px 20px;
    background-color: transparent;
    font-size: 17px;
    display: flex;
    justify-content: center;
}

.oitproject-box {
    padding: 30px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
	border: 1px solid red;
    color: white;
}

/* Header */
.oitproject-header-layout {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
	border: 1px solid red;
    border-radius: 15px;
    padding: 20px;
    color: black;
}

.oitproject-header-left {
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.oitproject-header-right {
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.oitproject-subtitle {
    font-size: 20px;
    color: white;
}

/* Layout */
.oitproject-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Bildbox */
.oitproject-image-box {
    flex: 1 1 60%;
    padding: 20px;
    border: 1px solid red;
	border-radius:12px;
}

.oitproject-image-box img.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sidebar */
.oitproject-sidebar {
    flex: 1 1 35%;
    padding: 20px;
	border: 1px solid red;
    color: black;
	border-radius:12px;
}

.oitproject-sidebar strong {
    font-weight: 600;
	color:black;
}

/* Kontakt */
.oitproduct-contact {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.oitproduct-contact-img {
    display: block;
    margin: 0 auto 10px;
    border-radius: 50%;
}

/* Info & Kategorien */
.oitproject-info,
.oitproject-categories {
    margin: 20px 0;
    text-align: center;
    color: black;
}
.oitproject-categories .oitproject-category-item {
    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 {
	display:flex;
	flex-direction:column;
	align-items:center;
}



/* Hauptinhalt */
.oitproject-main-content {
    padding: 20px;
	border: 1px solid red;
    border-radius: 12px;
    margin-bottom: 8px;
    flex: 1 1 100%;
    color: black;
}

/* Beschreibung */
.oitproject-description {
    line-height: 1.6;
    color: black;
}

.oitproject-description h2 {
    font-size: 24px;

    color: white;
}

.oitproject-description p {
    font-size: 17px;
    margin-bottom: 15px;
    color: white;
}

/* Listen */
.oitproject-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
    color: white;
}

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



/* Kategorien */
.oitproject-categories span {
    display: inline-block;
    border-radius: 6px;
    padding: 4px 10px;
    margin: 0px;
    color: black;
    font-size: 0.95em;
}

/* Ansprechpartner */
.oitproduct-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 10px;
    font-size: 1.1rem;
}

.oitproduct-contact img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.oitproduct-contact p {
    margin: 0;
    font-size: 1rem;
    color: white;
}
.oitproject-categories,
.oitproject-info {
	text-align:center;
}
.oitproject-info,
.oitproject-categories a {
	color:black;
}

/* Editor ausblenden bei Custom Post Type 'custom_project' */
.post-type-custom_project #postdivrich {
    display: none;
}
/* =============================================================================
   MEDIA GALLERY STYLES - FANCYBOX VERSION (BEREINIGT)
   ============================================================================= */

/* Media Gallery Grid */
.project-media-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.project-media-gallery[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.project-media-gallery[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.project-media-gallery[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

/* Responsive */
@media (max-width: 768px) {
    .project-media-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .project-media-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* Media Gallery Items */
.media-gallery-item {
    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 screen and (max-width: 768px) {
	.rsb-uebersicht-sec-1-parralax-bg .bg-layer {
	background-attachment: inherit!important;
}
}

.media-gallery-item:hover {
    transform: translateY(-5px);
}

.media-gallery-item img,
.media-gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.media-gallery-item:hover img,
.media-gallery-item:hover video {
    transform: scale(1.05);
}

.media-gallery-item .video-thumbnail {
    position: relative;
}

.media-gallery-item .video-play-overlay {
    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 {
    transform: translate(-50%, -50%) scale(1.1);
}

/* FancyBox Custom Styling */
.fancybox-toolbar {
    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 {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.fancybox-button:hover {
    transform: scale(1.1) !important;
}

.fancybox-navigation .fancybox-button {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
}



/* FancyBox Container Styling */
.fancybox-container {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(5px) !important;
}

.fancybox-bg {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(5px) !important;
}

/* FancyBox Caption Styling */
.fancybox-caption {
    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 {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
}

.fancybox-thumb {
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.fancybox-thumb:hover,
.fancybox-thumb.fancybox-thumb-active {
    border-color: #f07e31 !important;
    transform: scale(1.05) !important;
}

/* FancyBox Loading Animation */
.fancybox-loading {
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 3px solid #f07e31 !important;
}

/* FancyBox Close Button */
.fancybox-close-small {
    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 {
    transform: scale(1.1) !important;
}

/* Gallery Container Styling */
.oitproject-media-gallery-section {
    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);
}

.oitproject-media-gallery-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
}
.oit-partner-map {
	   padding: 20px;
    border: 1px solid red;
    border-radius: 12px;
    margin-bottom: 8px;
    flex: 1 1 100%;
    color: black;
}

/* Mobile Optimierungen für FancyBox */
@media (max-width: 768px) {
    .fancybox-caption {
        font-size: 14px !important;
        padding: 15px !important;
    }
    
    .fancybox-button {
        width: 40px !important;
        height: 40px !important;
    }
    
    .fancybox-toolbar {
        padding: 8px !important;
    }
}

/* Verhindert Scroll-Probleme */
.fancybox-active {
    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 {
    animation: fancyboxZoomIn 0.3s ease-out;
}

/* Dark Theme Anpassungen */
.fancybox-infobar {
    background: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    backdrop-filter: blur(10px) !important;
}

.oitproject-header-left {
	display:none;
}
    .media-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }
    
    .media-item {
        position: relative;
        border: 2px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        background: #f9f9f9;
    }
    
    .media-preview {
        position: relative;
        width: 100%;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }
    
    .media-preview img,
    .media-preview video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .video-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0,0,0,0.7);
        color: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }
    
    .file-icon {
        font-size: 40px;
        margin-bottom: 5px;
    }
    
    .file-name {
        font-size: 12px;
        text-align: center;
        padding: 0 5px;
        word-break: break-word;
    }
    
    .media-remove {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff4444;
        color: white;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        cursor: pointer;
        font-size: 16px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .media-remove:hover {
        background: #cc0000;
    }


/*=== Projektübersicht CSS ===*/

.rsb-uebersicht-sec-1 {
	height: 660px;
	background-color: #11303f;
	color: white;
}
.rsb-uebersicht-sec-1 h1 {
	color: white;
	font-size: clamp(2.5rem, 8vw, 10rem);
	transform: translate(-7px, -14px);
    -webkit-text-stroke: 0.05em #ffffff;
    letter-spacing: 0.05em;
	
}
.rsb-uebersicht-highlight-selection {
	display: flex;
	justify-content: center;
	gap: 54px;
	margin-top: 312px;
	position: relative;
	z-index: 1;
}
.rsb-uebersicht-highlight {
	height: 300px;
	width: 300px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
	text-align: center;
	padding: 10px;
    font-size: 21px;
    line-height: 1.3em;
	background: #2a6584;
    -webkit-text-stroke: 0.05em #ffffff;
    letter-spacing: 0.05em;
}
.rsb-uebersicht-highlight:hover {
	background-color: #11303F;
}

/* Parallax-Sektion mit Crossfade */
.rsb-uebersicht-sec-1-parralax-bg {
	position: relative;
	min-height: 500px;
	overflow: hidden;
	z-index: 0;
}

/* Zwei Layer für sanften Übergang */
.rsb-uebersicht-sec-1-parralax-bg .bg-layer {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: top;
	background-attachment: fixed; /* macht den Parallax-Effekt */
	opacity: 0;
	transition: opacity 0.6s ease;
	will-change: opacity;
}

/* Aktive Ebene sichtbar machen */
.rsb-uebersicht-sec-1-parralax-bg[data-active="a"] .bg-a { opacity: 1; }
.rsb-uebersicht-sec-1-parralax-bg[data-active="b"] .bg-b { opacity: 1; }

.rsb-uebersicht-sec-1-parralax-bg h2 {
	position: absolute;
	right: 0;
	color: white;
	font-size: clamp(2.5rem,8vw,10rem);
	font-family: 'Simdoran AH';
	transform: translate(8px, 373px);
    -webkit-text-stroke: 0.05em #ffffff;
    letter-spacing: 0.05em;
}

@media (max-width: 1700px) {

	.rsb-uebersicht-sec-1-parralax-bg h2 {
	margin-top: 13px;	
	}}

@media (max-width: 1600px) {

	.rsb-uebersicht-sec-1-parralax-bg h2 {
	margin-top: 22px;	
	}}

@media (max-width: 1500px) {

	.rsb-uebersicht-sec-1-parralax-bg h2 {
	margin-top: 31px;	
	}}

@media (max-width: 1400px) {

	.rsb-uebersicht-sec-1-parralax-bg h2 {
	margin-top: 33px;	
	}}



.rsb-uebersicht-filter-sek {
	height: 340px;
	background-image: url('https://rsb.de/wp-content/uploads/2025/09/Stahloptik_RSB.de_klein-01.webp');
	align-items: center;
    align-content: center;

}
.rsb-uebersicht-filter-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 54px;
}
.rsb-uebersicht-filter-option {
	padding: 5px;
	color: white;
	height: 65px;
	width: auto;
	font-size: 23px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.4s ease;
}
.rsb-uebersicht-filter-option:hover {
	background-color: #2a6584;
}
.rsb-uebersicht-filter-result {
    display: flex;
    justify-content: center;
    align-items: center;
	padding: 30px;
}

.rsb-uebersicht-result-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 300px); /* = Boxbreite */
    grid-auto-rows: 300px;                   /* = Boxhöhe */
    gap: 54px;                               /* gleicher Abstand in beide Richtungen */
}

.rsb-uebersicht-result-item {
    position: relative;      /* nötig für ::after */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    color: white;
    cursor: pointer;
    overflow: hidden;        /* damit das Overlay nicht raussteht */
	display: flex;
	align-items: flex-end;
	padding: 15px;
}

.rsb-uebersicht-result-item::after {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.6); /* Dunkles Overlay */
    transition: opacity 0.4s ease;
    opacity: 1;              /* sichtbar */
    pointer-events: none;    /* Klicks gehen durch */
}

.rsb-uebersicht-result-item h3 {
    position: relative; /* Text über Overlay */
    color: white;
    z-index: 1;
}

.rsb-uebersicht-result-item:hover::after {
    opacity: 0.5; /* Overlay verschwindet */
}

/* Für die Filter-Buttons */
.rsb-uebersicht-filter-option {
    padding: 5px;
    color: white;
    height: 65px;
    width: auto;
    font-size: 23px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease, transform 0.15s ease; /* transform für Button-Animation */
}

/* Für die Results */
.rsb-uebersicht-result-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    grid-auto-rows: 300px;
    gap: 54px;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Fade-Effekt */
}
.rsb-uebersicht-category-sec {
	min-height: 675px;
	background-image: url('https://rsb.de/wp-content/uploads/2025/11/MG_3407_schmal-scaled-1.jpg');
	background-position: 50%;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 65px;
}

.rsb-uebersicht-category-wrapper {
	    display: grid;
    grid-template-columns: repeat(3, 300px);
    grid-auto-rows: 300px;
    gap: 54px;

}
.rsb-uebersicht-category-item {
	width: 100%;
	height: 100%;
	background-color: #256586;
	color: white;
	transition: all 0.4s ease;
	cursor: pointer;
	padding-top: 90px;
	text-align:center;
}
.rsb-uebersicht-category-item h3 {
    color: white;
    font-size: 40px;
    font-family: 'Simdoran AH' !important;
    padding-left: 10px;
    padding-right: 10px;
    line-height: 3.7rem;
}

.rsb-uebersicht-category-item:hover {
	background-color: #11303f;
}
.rsb-load-more-container {
	width: 980px;
	margin-bottom: 20px;

}
.rsb-load-more-btn {
	cursor: pointer;
}


@media (max-width: 768px) {
	.rsb-uebersicht-sec-1 h1 {
		font-size: 50px;
		transform: translate(-3px, -6px);
	}
	.rsb-uebersicht-highlight-selection {
		flex-direction: column;
		align-items: center;
		margin-top: 10px;
		padding-bottom: 30px;
	}
	.rsb-uebersicht-sec-1 {
		height: auto;
	}
	.rsb-uebersicht-highlight {
		height: 125px;
	}
	.rsb-uebersicht-sec-1-parralax-bg h2 {
		font-size: 50px;
		right: 6px;
		transform: translate(8px, 357px);
	}
	
	.rsb-uebersicht-sec-1-parralax-bg {
		min-height: 400px;
	}
	.rsb-uebersicht-filter-wrapper {
		flex-direction: column;
	}
	.rsb-uebersicht-filter-sek {
		padding: 5%;
		height: auto;
	}
	.rsb-load-more-container {
		width: auto;
		margin: 0 auto;
		display: flex;
    	justify-content: center;
    	align-items: center;
		margin-bottom: 20px;
	}
	.rsb-uebersicht-category-item h3 {
		font-size: 34px;
		hyphens: auto;
		text-align: center;
		
	}
	
	.rsb-uebersicht-filter-result {
		min-height: auto;
	}
	.rsb-uebersicht-result-wrapper {
		grid-template-columns: repeat(1, 300px);
	}
	.rsb-uebersicht-category-wrapper {
		grid-template-columns: repeat(1, 220px);
		grid-auto-rows: 220px;
    	gap: 20px;
	}
	.rsb-uebersicht-category-item {
		height: 220px;
	}
	.rsb-uebersicht-category-item {
		padding: 0;
		padding-left: 0!important;
		display: flex;
		align-items: center;
		justify-content: center;
		padding-left: 5%;
	}
}

/* =============================================================================
   IMPROVED DROPDOWN ANIMATIONS
============================================================================= */
.rsb-uebersicht-filter-dropdown {
    position: relative;
    display: inline-block;
}

.rsb-uebersicht-filter-button {
    border: 1px solid white;
    padding: 5px 20px;
    color: white;
    height: 65px;
    width: 300px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother easing */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.rsb-uebersicht-filter-button:hover {
    background: rgba(42, 101, 132, 0.3);
    transform: translateY(-1px);
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    font-size: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pfeil dreht sich wenn Dropdown offen ist */
.rsb-uebersicht-filter-dropdown.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

.rsb-uebersicht-filter-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(42, 101, 132, 0.95);
    border-top: none;
    z-index: 1000;
    backdrop-filter: blur(5px);
    
    /* Animationseinstellungen */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown geöffnet */
.rsb-uebersicht-filter-dropdown.dropdown-open .rsb-uebersicht-filter-options {
    max-height: 3000px; /* Ausreichend groß für alle Optionen */
    opacity: 1;
    transform: translateY(0);
}

.rsb-uebersicht-filter-option {
    padding: 18px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 16px;
    font-weight: 700 !important;
    text-align: center;
    transform: translateX(-20px);
    opacity: 0;
}

/* Animation der einzelnen Optionen beim Öffnen */
.rsb-uebersicht-filter-dropdown.dropdown-open .rsb-uebersicht-filter-option {
    transform: translateX(0);
    opacity: 1;
    transition-delay: calc(var(--item-index, 0) * 0.05s); /* Staggered animation */
}

.rsb-uebersicht-filter-option:last-child {
    border-bottom: none;
}

.rsb-uebersicht-filter-option:hover,
.rsb-uebersicht-filter-option[data-selected="true"] {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.rsb-selected-filters {
    margin: 20px auto;

    /* Breite an die Filter-Wrapper-Breite anpassen */
    width: 980px;
}

.selected-filters-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.selected-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center; /* Damit Button auf gleicher Höhe */
}

.selected-filter-tag {
    background-color: #2a6584;
    color: white;
    padding: 8px 15px;
    border-radius: 0px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
    opacity: 0;
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.selected-filter-tag:hover {
    background: #1e4d66;
}

.filter-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-remove:hover {
    background: rgba(255, 68, 68, 0.8);
    transform: scale(1.1);
}

/* Neuer "Alle Filter löschen"-Button */
/* "Alle Filter löschen"-Button - im Stil der Filter-Tags */
.clear-all-filters-btn {
    background-color: #2a6584;
    color: white;
    padding: 8px 15px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-family: 'Simdoran AH' !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto; /* Passt sich automatisch der Höhe der Filter-Tags an */
}

/* "Alle Filter löschen"-Button - im Stil der Filter-Tags */
.clear-all-filters-btn {
    background-color: #2a6584;
    color: white;
    padding: 8px 15px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-family: 'Simdoran AH' !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1; /* Wichtig: verhindert zusätzliche Höhe */
    min-height: 46px; /* Gleiche Mindesthöhe wie Filter-Tags */
}

.clear-all-filters-btn::after {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.clear-all-filters-btn:hover {
    background: rgba(255, 68, 68, 0.8);
    transform: translateY(-2px);
}

.clear-all-filters-btn:hover::after {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.rsb-load-more-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* ==========================================================================
   PAGINATION STYLES
   ========================================================================== */
.rsb-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.rsb-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  background: transparent;
  border: 1px solid black;
  color: black;
  font-family: 'Simdoran AH' !important;
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #2a6584;
}

.page-btn.active {
  background: #2a6584;
	color: white;
  border-color: #2a6584;
}

.page-btn.prev,
.page-btn.next {
  font-size: 18px;
  padding: 8px 14px;
}
@media (min-width: 769px) and (max-width: 1366px) {


.rsb-uebersicht-highlight {
	height: 230px;
	width: 200px;
}
	.rsb-uebersicht-filter-wrapper {
		flex-wrap: wrap;
	}
	.rsb-uebersicht-result-wrapper {
		grid-template-columns: repeat(2, 300px);
	}
	.rsb-uebersicht-sec-1-parralax-bg h2 {
		font-size: 100px;
		transform: translate(8px, 414px);
		margin-top: 3px;
	}
	.rsb-uebersicht-sec-1 h1 {
		font-size: 100px;
		transform: translate(-7px, -12px);
	}
	.rsb-uebersicht-sec-1 {
		height: auto;
	}
	.rsb-uebersicht-highlight-selection {
		margin-top: 30px;
		transform: translateY(100px);
	}
	.rsb-uebersicht-category-wrapper {
    	transform: translateY(163px)!important;
		grid-template-columns: repeat(3, 180px);
        grid-auto-rows: 180px;
		gap: 20px;
	}
	.rsb-uebersicht-category-sec {
		min-height: 380px;
	}
	.rsb-uebersicht-category-item h3 {
		line-height: 1;
		font-size: 25px;
		hyphens: auto;
	}
	.rsb-uebersicht-category-item {
		padding-top: 0;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
}
/* weicher Übergang */
.rsb-uebersicht-category-sec {
    background-size: cover;
    background-position: center;
    transition: background 0.4s ease;
}

@media (max-width: 768px) {

    /* Container */
    .selected-filters-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
        width: 100%;
    }

    /* EINZELNER FILTER */
    .selected-filter-tag {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        padding: 10px 14px;
        box-sizing: border-box;

        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.25);

        border-radius: 0;  /* eckig */
        white-space: normal;
    }

    /* Kategorie (Leistungen:, Gebäudeart:, Branche:) */
    .selected-filter-tag .filter-category {
        font-size: 14px;
        font-weight: 300;
        opacity: 0.85;
        margin-right: 4px;
    }

    /* Wert (z.B. Stahlbau, Industrie etc.) */
    .selected-filter-tag .filter-name {
        font-size: 15px;
        font-weight: 600; /* FETT */
        color: #fff;
        margin-right: auto;
    }

    /* X-Button */
    .selected-filter-tag .filter-remove {
        margin-left: 12px;

        width: 26px;
        height: 26px;
        padding: 0;

        border: 1px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.15);

        border-radius: 0;  /* eckig */
        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 14px;
        color: #fff;
    }

    /* Alle Filter löschen – eckig, breiter */
    #clear-all-filters-inline,
    #clear-all-filters-btn {
        border-radius: 0 !important;
        padding: 14px !important;
        width: 100% !important;
        text-align: center;
    }

}






/* Item 1 */
.rsb-uebersicht-category-sec:has(.item-1:hover) {
    background: url('https://rsb.de/wp-content/uploads/2025/11/MG_3407_schmal-scaled-1.jpg') center/cover no-repeat;
}

/* Item 2 */
.rsb-uebersicht-category-sec:has(.item-2:hover) {
    background: url('https://rsb.de/wp-content/uploads/2025/11/CH_0372_schmal-scaled-1.jpg') center/cover no-repeat;
}

/* Item 3 */
.rsb-uebersicht-category-sec:has(.item-3:hover) {
    background: url('https://rsb.de/wp-content/uploads/2025/11/RSB-Uni-Muenster-6schmal_bearbeitet-1-scaled-1.jpg') center/cover no-repeat;
}
