/* Projekt Links*/
/* ============================================
   DIVI HEADER VERSTECKEN
   ============================================ */
/* #main-header,
.et-fixed-header,
#et-top-navigation,
.et_pb_section_video_bg,
.et_pb_section_video,
#et-main-area,
.et-db #et-main-area {
    display: none !important;
} */

/* ============================================
   RSB CUSTOM HEADER
   ============================================ */
.rsb-project-custom-header {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}


/* ============================================
   HERO IMAGE MIT OVERLAY
   ============================================ */
.rsb-project-hero-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 100vh;
    overflow: visible;
}

.rsb-project-hero-fullwidth::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: block !important;
}

.rsb-project-hero-fullwidth img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0;
}

/* ============================================
   TITLE CONTAINER - MIT ANIMATIONEN
   ============================================ */
.rsb-project-left-title-container {
    position: absolute;
    bottom: -37vh;
    right: 22%;
    width: auto;
	min-height: 670px;
    height: auto;
    background: rgba(37, 101, 134, 1);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding: 40px;
    box-sizing: border-box;
    color: white;
    transition: bottom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* 🔥 NEU: Smooth Scroll für ≤1630px */
@media (max-width: 1630px) and (min-width: 769px) {
    .rsb-project-left-title-container {
        transition: bottom 0.01s linear !important; /* Schnellere, smoothere Transition */
        transform: none !important; /* Keine Rotation */
    }
}

.rsb-project-left-title-container.animated {
    bottom: -61vh;
}

.rsb-project-left-title-container.rotated {
    transform: rotate(90deg) translate(250px, -180px);
    flex-direction: row-reverse;
	height: 70vh!important
}

.rsb-project-left-title-container.rotated h1 {
    display: none;
}

/* ============================================
   MARKER (L-ICON)
   ============================================ */
.marker-project {
    width: 80px;
    height: 80px;
    background-image: url(https://rsb.de/wp-content/uploads/2025/07/L.svg);
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 15;
    filter: drop-shadow(0 0 6px white) drop-shadow(0 0 4px black) brightness(1.2);
    opacity: 1;
    position: absolute;
    top: 40px;
    right: 40px;
    transition: opacity 1s ease, transform 1s ease;
}

.rsb-project-left-title-container.rotated .marker-project {
    opacity: 0;
    transform: scale(0.8);
}

/* Standardzustand (bei .rotated oder normal): unsichtbar */
.project-address,
.project-address-icon,
.project-address-text {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* Nur wenn .project-address die Klasse .lasstep trägt: sichtbar */
.project-address.lasstep,
.project-address.lasstep .project-address-icon,
.project-address.lasstep .project-address-text {
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: auto;
}
/* ============================================
   TITLE & META INFO
   ============================================ */
.rsb-project-left-title-container h1 {
    font-size: 2.5rem;
    font-family: arial !important;
    margin: 0 0 auto 0;
    margin-top: 100px;
    color: #fff;
    line-height: 1.2;
    font-weight: bold;
    text-align: right;
	max-width: 280px;
}
.project-category-heading-left {
	display: inline-block;
	margin-bottom: 8px;
}
.project-meta-info {
    width: 100%;
    text-align: right;
    margin-bottom: 30px;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.rsb-project-left-title-container.rotated .project-meta-info {
    transform: rotate(-90deg)translateX(75px);
}

.project-categories-list {
    margin-bottom: 30px;
}

.project-category-item {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.project-specs {
    text-align: right;
}

.project-spec-item {
    display: block;
    white-space: nowrap;
    margin-bottom: 6px;
    color:#FFFFFFE6;
    line-height: 1.3;
}

.rsb-project-left-title-container.rotated .project-meta-info,
.rsb-project-left-title-container.rotated .project-specs {
    text-align: left;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.rsb-project-left-container {
    height: 100vh;
}

.rsb-project-content-section {
    min-height: 75vh;
    height: auto;
    background: rgb(20, 48, 63);
    width: 65%;
    margin-top: 9%;
    position: relative;
    z-index: 1;
    padding-bottom: 250px;
}

.project-description {
    color: white;
    padding-left: 12%;
    padding-right:23%;
    text-align: justify;
    font-size: 23px;
    padding-top: 10%;
    line-height: 1.5;
    transition: opacity 1.5s ease;
}

/* .project-description.rotated {
    opacity: 0;
    height: 300px;
} */

.second-headline-rsb-project-left {
    color: white;
    font-size: 70px;
    text-align: right;
    width: 50%;
    margin: 0 auto;
    opacity: 0;

    transition: opacity 1s ease;
}

.project-description.lasstep {
	opacity: 0;
	transition: opacity 1.5s ease;
}
.second-headline-rsb-project-left.lasstep {
	opacity: 1;
	transition: opacity 1s ease;
}

/* .second-headline-rsb-project-left.rotated {
    opacity: 1;
    display: block;
} */

/* ============================================
   PROJECT ADDRESS
   ============================================ */
 .project-address {
    display: flex;
    align-items: center;
    padding-left: 20%;
    padding-right: 31%;
    margin-top: 38px;
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-address-icon {
    width: 80px;
    height: 80px;
    background-image: url(https://rsb.de/wp-content/uploads/2025/07/project_adress_icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
    flex-shrink: 0;
}


.project-address-text {
    color: white;
    font-size: 23px;
    line-height: 1.4;
} 

 .project-address.rotated {
    width: 60%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
    justify-content: flex-end;
    transform: translateX(0);
}

.project-address.rotated .project-address-icon {
    width: 70px;
    height: 70px;
} 

/* ============================================
   IMAGE SLIDER (CSS ANIMATION)
   ============================================ */
.project-gallery-slider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 550px;
    overflow: visible;
    margin-top: -221px;
    z-index: 25;
}

.slider-track {
    display: flex;
    height: 400px;
    animation: slide 25s linear infinite;
    gap: 70px;
    margin-top: 20px;
}

.slider-image {
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    transform: translateY(0) scale(1);
    transform-origin: center bottom;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

.slider-image:hover {
    transform: translateY(-20px) scale(1.1);
    z-index: 30;
}

.slider-image:hover img {
    filter: grayscale(0%);
}

.project-gallery-slider:has(.slider-image:hover) .slider-track,
.project-gallery-slider:hover .slider-track {
    animation-play-state: paused;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .rsb-project-left-title-container {
        position: relative;
        width: 80%;
        margin: 0 auto;
        bottom: 45vh!important;
        right: auto !important;
        padding: 20px;
        height: auto;
    }
	
    
    .rsb-project-left-title-container.rotated {
        transform: none !important;
        flex-direction: column !important;
    }
    
    .rsb-project-left-title-container h1 {
        font-size: 33px;
        font-weight: 400;
        padding-bottom: 130px;
        padding-top: 30px;
    }
    
    .rsb-project-left-title-container.rotated h1 {
        display: block !important;
    }
    
    .rsb-project-left-title-container.rotated .project-meta-info {
        transform: none !important;
    }
    
    .project-spec-item,
    .project-category-item {
        font-size: 19px;
    }
    
    .marker-project {
        height: 40px;
        width: 40px;
    }
    
    .rsb-project-content-section {
        width: 100%;
        height: auto;
        margin-top: 0;
        padding-top: 360px;
    }
    
    .project-description {
        padding: 0;
        width: 80%;
        margin: 0 auto;
        font-size: 19px;
    }
    
    .project-description.rotated {
        opacity: 1 !important;
        height: auto !important;
    }
  
    .second-headline-rsb-project-left,
    .second-headline-rsb-project-left.rotated {
        display: none !important;
        opacity: 0 !important;
    } 
    
    .project-address {
        justify-content: center;
        padding: 0;
        gap: 30px;
        padding-bottom: 20px;
    }
    
    .project-address.rotated {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        padding-left: 20% !important;
        padding-right: 31% !important;
        justify-content: flex-start !important;
        z-index: auto !important;
    }
    
    .project-address-text {
        font-size: 19px;
    }
    
    .project-address.rotated .project-address-icon {
        width: 80px !important;
        height: 80px !important;
    }
    
    .project-gallery-slider {
        margin-top: -5px;
        padding-top: 30px;
        padding-bottom: 50px;
        background: rgb(20, 48, 63);
        height: auto;
    }
    
    .slider-image {
        width: 300px;
        height: 300px;
        margin: 0;
    }
    
    .slider-track {
        margin-top: 0;
        height: auto;
    }
    
    .rsb-project-left-container {
        height: auto;
    }
}

/* ============================================
   RESPONSIVE - TABLET & DESKTOP
   ============================================ */
@media (min-width: 769px) {
    .project-gallery-slider {
        margin-top: -221px;
    }
    

    
    .rsb-project-left-title-container {
        width: auto;
        height: auto;
		
    }
    
    .rsb-project-left-title-container h1 {
        font-size: 28px;
        margin-top: 106px;
        padding-bottom: 90px;
    }
    
    .project-description.rotated {
        height: 140px;
    }
    
    .project-description,
    .project-address-text {
        font-size: 20px;
    }
    
    .project-specs,
    .project-meta-info {
        text-align: left;
        font-size: 20px !important;
    }
    
    .project-address.rotated {
        width: 50%;
        padding-right: 0;
    }
    
    .slider-image {
        width: 300px;
        height: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .second-headline-rsb-project-left {
        font-size: 37px;
        margin-right: 200px;
    }
    
    .project-address.rotated {
        margin-right: 200px !important;
    }
    
    .project-description {
        font-size: 16px;
        padding-left: 10%;
        padding-right: 40%;
    }
}

@media (min-width: 1024px) and (max-width: 1239px) {
    .second-headline-rsb-project-left {
        font-size: 47px;
    }
    
    .project-description {
        font-size: 15px;
		padding-right: 32%;
    }
    
    .rsb-project-left-title-container {
        width: auto;
    }
    
    .rsb-project-left-title-container.animated {
        bottom: -54vh;
    }
}

@media (min-width: 1024px) and (max-width: 1618px) {
    .second-headline-rsb-project-left {
        font-size: 67px;
    }
}

@media (min-width: 1240px) and (max-width: 1500px) {
    .second-headline-rsb-project-left {
        font-size: 57px;
    }
    
    .project-description {
        font-size: 17px;
		padding-right: 34%;
    }
}

@media (min-width: 2200px) {
    .rsb-project-content-section {
        height: 94vh;
    }
    
    .project-gallery-slider {
		margin-top: -221px;
    }
}

/* ============================================
   IPAD PORTRAIT
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .rsb-project-left-title-container {
        position: relative;
        width: 50%;
        margin: 0 auto;
        bottom: 43vh;
        right: auto !important;
        padding: 20px;
        height: auto;
    }
    
    .rsb-project-left-title-container.rotated {
        transform: none !important;
        flex-direction: column !important;
    }
    
    .rsb-project-left-title-container.rotated h1 {
        display: block !important;
    }
    
    .rsb-project-left-title-container h1 {
        font-size: 33px;
        font-weight: 400;
        padding-bottom: 130px;
        padding-top: 30px;
    }
    
    .project-description {
        padding: 0;
        width: 80%;
        margin: 0 auto;
        font-size: 19px;
        height: auto !important;
        opacity: 1 !important;
    }
    
    .project-spec-item,
    .project-category-item {
        font-size: 19px;
    }
    
    .marker-project {
        height: 40px;
        width: 40px;
    }
    
    .rsb-project-content-section {
        width: 100%;
        height: auto;
        margin-top: 0;
        padding-top: 340px;
    }
    
    .project-gallery-slider {
        margin-top: -5px;
        padding-top: 30px;
        padding-bottom: 50px;
        background: rgb(20, 48, 63);
        height: auto;
    }
    
    .slider-image {
        width: 300px;
        height: 300px;
        margin: 0;
    }
    
    .slider-track {
        margin-top: 0;
        height: auto;
    }
    
    .project-address {
        justify-content: center;
        padding: 0;
        gap: 30px;
        padding-bottom: 20px;
        transform: none !important;
    }
    
    .project-address-text {
        font-size: 19px;
    }
    
    .project-address.rotated {
        transform: none !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    .second-headline-rsb-project-left {
        display: none !important;
    }
    
    .rsb-project-left-container {
        height: auto;
    }
    
    .project-meta-info {
        width: 100%;
        text-align: right;
        margin-bottom: 30px;
        transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform-origin: center center;
    }
    
    .project-specs {
        text-align: right;
    }
}

/* ============================================
   DEAKTIVIERE ALLE ROTATIONEN UND TEXTEFFEKTE UNTER 1630PX
   ============================================ */
@media (max-width: 1630px) {
  /* Hauptcontainer bleibt unverändert, aber keine Rotation mehr */
  .rsb-project-left-title-container.rotated {
    transform: none !important;
    flex-direction: column !important;
    height: auto !important;
  }

  /* Marker bleibt sichtbar */
  .rsb-project-left-title-container.rotated .marker-project {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Meta-Infos & Spezifikationen bleiben sichtbar und linksbündig */
  .rsb-project-left-title-container.rotated .project-meta-info,
  .rsb-project-left-title-container.rotated .project-specs {
    transform: none !important;
    text-align: left !important;
  }

  /* Beschreibung bleibt sichtbar */
  .project-description.rotated {
    opacity: 1 !important;
    height: auto !important;
    transform: none !important;
  }

  /* Zweite Überschrift wird komplett ausgeblendet */
  .second-headline-rsb-project-left,
  .second-headline-rsb-project-left.rotated {
    display: none !important;
    opacity: 0 !important;
  }

  /* Projekt-Adresse bleibt normal sichtbar */
  .project-address.rotated {
    transform: none !important;
    width: auto !important;
    margin: 38px auto !important;
    padding: 0 20% !important;
    justify-content: flex-start !important;
  }

  .project-address.rotated .project-address-icon {
    transform: none !important;
  }

  /* Allgemeine Rücksetzung aller .rotated Elemente */
  .rotated {
    transform: none !important;
    opacity: 1 !important;
  }

  /* Hauptüberschrift bleibt eingeblendet */
  .rsb-project-left-title-container.rotated h1 {
    display: block !important;
    opacity: 1 !important;
  }

  /* Text-Ausrichtung bleibt linksbündig */
  .rsb-project-left-title-container,
  .rsb-project-left-title-container * {
    text-align: left !important;
	font-size: 18px;
  }
}


@media (min-width: 300px) and (max-width: 762px) {
		.rsb-project-left-title-container {
        bottom: 46vh!important;
		width: 80%;
    	}
	.rsb-project-content-section {
		padding-bottom:0;
	}

}
.swiper-wrapper {
    display: flex;
    height: 400px;
    margin-top: 20px;
    transition-timing-function: linear !important; /* 👈 WICHTIG für konstante Geschwindigkeit */
}
@media screen and (width: 1024px) and (height: 1366px) and (orientation: portrait) {
	.rsb-project-left-title-container {
		bottom: 43vh;
	}
	.rsb-project-hero-fullwidth {
		height: 64vh;
	}
}
@media screen and (width: 1366px) and (height: 1024px) and (orientation: landscape) {
	    .rsb-project-left-title-container {
        bottom: -14vh;
    }
}
.project-category-heading-left {
	color: #FFFFFFE6;
}
.videolink {
	position: relative;
	width: 50%;
	margin: 0 auto;
	text-align: center;
	padding: 50px;
	display: flex;
	justify-content: center;
	z-index: 555;
	transform: translateY(-150px);
}
.videolink a {
	color: white;
	background: #236487;
	padding: 1rem;
	width: 200px;
	display: block;
}
/* Fade wie gehabt */
.lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.lb-img.loaded {
    opacity: 1;
}

/* Pfeile – kein Kreis, nur weiß */
.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    font-weight: 300;
    color: white;
    z-index: 9999999999;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: opacity .2s ease;
    opacity: 0.8;
}
.lb-arrow:hover {
    opacity: 1;
}

/* OUTSIDE arrows (negativ!) */
.lb-arrow-left {
    left: -100px;
}
.lb-arrow-right {
    right: -100px;
}

/* Responsive Anpassungen – gleiche Logik mit negativen Werten */
@media (max-width: 1400px) {
    .lb-arrow-left { left: -60px; }
    .lb-arrow-right { right: -60px; }
}

@media (max-width: 1024px) {
    .lb-arrow-left { left: -40px; }
    .lb-arrow-right { right: -40px; }
}

@media (max-width: 768px) {
    .lb-arrow-left { left: -20px; }
    .lb-arrow-right { right: -20px; }
}

@media (max-width: 480px) {
    .lb-arrow-left { left: -12px; }
    .lb-arrow-right { right: -12px; }
    .lb-arrow { font-size: 38px; }
}
.lb-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 300;
    color: black;
    z-index: 9999999999;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: opacity .2s ease;
    opacity: 0.8;
}
.lb-close:hover {
    opacity: 1;
}
	.lb-caption {
    position: fixed;
    bottom: -45px;
    left: 0px;
    color: white;
    font-size: 15px;
    font-weight: 400;
    z-index: 9999999999;
    max-width: 60%;
    padding: 12px 20px;
}

@media (max-width: 768px) {
    .lb-caption {
        bottom: 20px;
        left: 20px;
        font-size: 16px;
        max-width: calc(100% - 40px);
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .lb-caption {
        bottom: 15px;
        left: 15px;
        font-size: 14px;
        max-width: calc(100% - 30px);
        padding: 8px 12px;
    }
}
@media (max-width: 440px) and (max-height: 800px) {
	.rsb-project-left-content-section {
        padding-top: 400px !important;
    }
} 