[id^="portfolio_"]:not(#portfolio_all) {
  display: none;
}

.section-hero {
	transition: opacity 1s ease;
	top:80px;
}


#navigation_wrapper > div {
	position: relative;
	opacity: 0;
}


#lottie_container {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	bottom: 20vh;
}

.lottie_animation {
	position: absolute;
	opacity: 1;
}

.logo_autoplay {
  display: flex;
  align-items: center;
  gap: 20px; /* space between logo and toggle */
}

.div-block-7 {
  margin-left: 0;
}

.back-button-wrapper {
  position: absolute;
  top: 100%;
  padding-left: 25px;
}

.back-button {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 1.47rem;
  cursor: pointer;
  margin-top: 5px;
  padding: 10px;
  border: 3px solid white;
  background-color: black;
  opacity: 0;
  transition: opacity 1s ease-in, transform 1.5s cubic-bezier(0, 0.509, 0, 0.99);
  text-align: left;
  transform: translateX(80px);
}

.back-button.visible {
  opacity: 1;
  transform: translateX(0);
}

.autoplay-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8%;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: white;
  align-self: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #999;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #5877d4;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.toggle-label {
  user-select: none;
  font-family: Cairo, sans-serif;
  font-weight: 700;
  color: rgba(210,210,210,1);
}


.portfolio-selection {
	opacity: 0;
}

.selection-hl {
	position: absolute;
	opacity: 0;
	left: 0;
	transition: opacity 1s ease, transform 1s ease;
}

.selection-title {
	position: absolute;
	left: 0px;
	opacity: 1;
	transition: opacity 1s ease, transform 1s ease;
}

#nachhaltigkeit_cover {
	background-color: #0a1c40;
}

.portfolio_parent {
	opacity: 0;
	overflow: hidden;
	position: relative;
	display: flex;
	justify-content: left; /* Centers horizontally */
	align-items: center;
	margin: 0;
	padding: 0;

}

.portfolio_cover {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	cursor: pointer;
}

/*#eucerin-page > #info-wrapper {
  left: 8vw;

}*/

.portfolio_client {
	position: relative;
	left: 27%;
	text-align: center;

}


.cardfocus {
	filter: blur(0.5px);
	position: absolute;
	width: 3%;
	height: auto;
	opacity: 0;
	transform: scale(0);
	transition: transform 1s ease, opacity 1s ease;
	transform-origin: center;
	pointer-events: none;
}

.cardfocus.showing {
	opacity: 1;
	transform: scale(1);
	transition: transform 0.5s ease, opacity 0.5s ease;
}

.cardfocus.hiding {
	opacity: 0;
	transform: scale(1.5);
}

.cardfocus.bl {
	bottom: 2%;
	left: 1%;

}

.cardfocus.tl {
	top: 2%;
	left: 1%;
}

.cardfocus.tr {
	top: 2%;
	right: 1%;

}

.cardfocus.br {
	bottom: 2%;
	right: 1%;
}

.dropdown-list {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dropdown.open .dropdown-list {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}


/* ----------------------- CASE PAGE -----------------------*/

.case-page {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100vh;
  transition: opacity 0.5s ease;
}

.case-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  display: inline-block;
}

.case-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.video_wrapper {
  width: 100%;
  max-width: 6vw;
  display: flex;
  align-content: center;
  opacity: 1;
}

.video_wrapper video {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.video_wrapper video.showing {
  opacity: 1;
}

.videofile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  object-fit: cover;
  overflow: hidden;
  opacity: 1;
}

.video-container {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  transition: opacity 1.5s ease !important;
}

.video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 35%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 35%);
    z-index: 3;
    pointer-events: none;
    transition: opacity 1s ease;
}

.video-container.no-overlay::before {
  opacity: 0;
}

.controls {
  position: absolute;
  bottom: 4vw;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;

  pointer-events: auto;
  z-index: 3;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.controls-wrapper,
.volume-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
  width: 50%;
  max-width: 100%;
}

.controls-wrapper button,
.volume-wrapper span,
.fullscreen-toggle {
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  padding: 5px 10px;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-right: 5px;
  align-self: center;
}

.fullscreen-toggle {
  margin-left: 5px;
}

.volume-wrapper {
  flex-direction: row;
  align-self: center;
  position: relative;
  gap: 5px;
}

.volume-toggle {
  position: relative;
  cursor: pointer;
  color: white;
  font-family: Cairo, sans-serif;
  font-weight: 700;
}

.volume-controls {
  width: 50vw;
  height: 10px;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.volume-controls:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.progressBar,
.volumeSlider {
  cursor: pointer;
}

.progressBar {
  width: 60%;
  max-width: 600px;
  min-width: 200px;
  margin-right: 10px;
}

.volumeSlider {
  width: 200px;
}

/*.progressBar line,*/
.volumeSlider line {
  stroke: white;
}

.progressBg,
.volumeBg {
  opacity: 0.3;
  stroke: black !important;
}

.progressFill,
.volumeFill {
  stroke: white !important;
  stroke-width: 3;
  opacity: 1 !important;
  z-index: 10;
}

.text-group {
  position: absolute;
  top: 7vh;
  left: 50%;
  transform: translateX(0) scale(1);
  transform-origin: top center;
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 10;
  gap: 1.2vw;
  transition: transform 0.3s ease;
}

#info-wrapper {
  padding: 10px 10px 10px 10px;
}

.infos {
  position: relative;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  color: white;
  z-index: 10;
  gap: 6px;
  font-size: 1.2vw;
}

.info-text {
  font-family: 'Cairo', sans-serif;
  font-size: 1.2vw;
  line-height: 1.1vw;
  white-space: nowrap;
}

#client-hl,
#agency-hl,
#role-hl {
  font-weight: 300;
}

#client-id,
#agency-id,
#role-id {
  font-weight: 700;
}

#client-id,
#agency-id {
  margin-bottom: 0.75vw;
  display: inline-flex;
}





.time-info {
  color: white;
  font-family: 'Cairo', sans-serif;
  font-size: 1em;
  margin-left: 12px;
  white-space: nowrap;
}





.menu-wrapper {
  align-items: center;
}

@media (max-width: 479px) {
    .w-dropdown-btn, .w-dropdown-toggle, .w-dropdown-link {
        padding-top: 0;
    }

    .w-icon-dropdown-toggle {
        margin-top: 10%;
    }
}

@media (max-width: 768px) {
    #lottie_container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
    }
    
    #back-button {
        font-size: 0.7rem !important;
        padding: 1px 5px !important;
        border-width: 1px !important;
    }

    .autoplay-toggle {
        display: none !important;
    }

@media (max-width: 1024px), (pointer: coarse), (hover: none) {
    .autoplay-toggle {
        display: none !important;
    }
}

    .back-button-wrapper {
        padding-left: 10px !important;
    }

    .case-video {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 100vw !important;
        height: auto !important;
        object-fit: contain !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1 !important;
    }

    .text-group {
        left: 50vw !important;
        top: 6vh !important;
        transform: scale(2) !important;
        transform-origin: left center !important;
    }

    .controls {
        width: 100%;
        bottom: 15vh !important;
        transform: translateX(-50%) scale(0.75) !important;
    }

    .infos {
        font-size: 2vw !important;
        gap: 2px !important;
        flex-direction: row !important;
        position: fixed !important;
        top: 5vh !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .video-container::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 80%) !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 80%) !important;
    }

    #info-wrapper {
        padding: 0;
    }

    .controls-wrapper, .volume-wrapper {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        pointer-events: auto;
        width: 75%;
        max-width: 100%;
    }

    .controls-wrapper button, .volume-wrapper span, .fullscreen-toggle {
        background-color: rgba(30, 30, 30, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 1px;
        padding: 5px 10px;
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

    .volume-wrapper {
        flex-direction: column !important;
        top: 20px !important;
    }

    .time-info {
        position: relative;
        bottom: 20px;
    }

    .controls-wrapper {
        width: 100%;
    }

    .section-hero {
        top: 5vh !important;
    }

    .section-hero, .section-hero-copy {
        padding: 0 !important;
        top: -1vh !important;
    }

    .logo_autoplay {
        left: 9vw !important;
    }

    .w-layout-grid {
        grid-column-gap: 6px;
        grid-row-gap: 6px;
        grid-template-rows: minmax(0, 13vh) minmax(0, 13vh);
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(0, 13vh);
        max-height: none;
        padding: 0 10px;
    }

    .portfolio-selection {
        left: 75px !important;
        top: calc(50% + 2vh);
    }

    #navigation_wrapper > div {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 1400px) and (orientation: landscape) {
  .portfolio-selection {
    top: calc(50% + 2vh);
  }
  .w-layout-grid {
      grid-template-rows: minmax(0, 40vh) minmax(0, 40vh) !important;
      grid-auto-rows: minmax(0, 40vh) !important;
  }
    .section-hero {
        top: 9vh !important;
    }

    #back-button {
        top: -10vh !important;
        font-size: 0.8rem !important;
        padding: 1px 5px !important;
        border-width: 1px !important;
    }

    .controls {
        transform: translateX(-50%) translateY(40%) scale(0.5) !important;
    }

    .infos {
        font-size: 0.5vw !important;
        gap: 2px !important;
        flex-direction: row !important;
        position: fixed !important;
        top: 5vh !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.5) !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .portfolio-selection {
        top: calc(50% + 6vh);
        left: 65px !important;
    }

    .section-hero {
        top:1vh !important;
    }

    .div-block-7 {
        position: relative !important;
        padding-left: 0 !important;

        left: 10px !important;
    }

    .heading {
        padding-left: 0;
    }

    .controls {
        transform: translateX(-50%) translateY(40%) scale(0.5) !important;
    }


    .infos {
        font-size: 0.5vw !important;
        gap: 2px !important;
        flex-direction: row !important;
        position: fixed !important;
        top: 5vh !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.5) !important;
    }
}
/* Mobile footer styles */
@media (max-width: 768px) {
    footer {
        font-size: 9px !important;
        padding: 2.5px !important;
    }
    footer a, footer span {
        margin: 0 7.5px !important;
    }
    #impressumPopup > div, #datenschutzPopup > div {
        width: 95% !important;
        max-height: 90% !important;
        padding: 20px !important;
        font-size: 14px !important;
    }
    #impressumPopup h2, #datenschutzPopup h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    #impressumPopup h3, #datenschutzPopup h3 {
        font-size: 1rem !important;
    }
    #impressumPopup h4, #datenschutzPopup h4 {
        font-size: 0.9rem !important;
    }
    #impressumPopup > div > div, #datenschutzPopup > div > div {
        max-height: calc(90vh - 100px) !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    #impressumPopup > div, #datenschutzPopup > div {
        max-height: 95% !important;
        padding: 15px !important;
        font-size: 12px !important;
    }
    #impressumPopup h2, #datenschutzPopup h2 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    #impressumPopup h3, #datenschutzPopup h3 {
        font-size: 0.9rem !important;
    }
    #impressumPopup h4, #datenschutzPopup h4 {
        font-size: 0.8rem !important;
    }
    #impressumPopup > div > div, #datenschutzPopup > div > div {
        max-height: calc(95vh - 80px) !important;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    #impressumPopup > div, #datenschutzPopup > div {
        width: 95% !important;
        max-height: 95% !important;
        padding: 15px !important;
        font-size: 12px !important;
    }
    #impressumPopup h2, #datenschutzPopup h2 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
    #impressumPopup h3, #datenschutzPopup h3 {
        font-size: 0.9rem !important;
    }
    #impressumPopup h4, #datenschutzPopup h4 {
        font-size: 0.8rem !important;
    }
    #impressumPopup > div > div, #datenschutzPopup > div > div {
        max-height: calc(95vh - 90px) !important;
    }
}