.standout-max-container:has(> .service-list-advanced) {
	position: relative;
}

.service-list-advanced {
	position: relative;
	display: flex;
	flex-direction: column;
	line-height: 1;
	padding-inline: 0;

	& a {
		list-style: none;
		text-decoration: none;
		/* position: relative; */

		& .title {
			padding: .55em 0px;
			border-bottom: 1px solid currentColor;
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 30px;
			position: relative;

			& .title-text {
				margin-bottom: 0;
				font-size: inherit;
				line-height: inherit;
				transition: color var(--transition-duration);
			}

			&:hover .title-text {
				color: transparent;
			}

			& .title-text:after {
				content: 'Læs mere her';
				position: absolute;
				left: 0;
				color: transparent;
				transition: color var(--transition-duration);
			}
			&:hover .title-text:after {
				color: var(--color-text);
			}

			&:after {
				position: absolute;
				content: '';
				width: 0px;
				height: 1px;
				bottom: 0px;
				background-color: currentColor;
				transition: width 0.3s ease;
			}

			@media (hover: hover) {
				&:hover:after {
					width: 100%;
				}
			}
		}

		& .hover_content_wrapper {
			display: none;
			padding: 0;
			/* background-color: var(--color-dark); */
			color: var(--color-text-white);
			transition: opacity var(--transition-duration);

			&:before {
				content: '';
				position: absolute;
				inset: 0;
				z-index: -1;
				background-color: var(--color-dark);
				transition: bottom var(--transition-duration);
			}

			& .hover_content_wrapper_inner {
				display: flex;
				flex-direction: column;
				justify-content: center;
				height: 100%;
				/* overflow: auto; */

				& .hover_content_wrapper_inner_content {
					max-height: 100%;
					padding: calc(1.5 * var(--gap-m));
					overflow: auto;
				}
			}
		}

		@media (hover: hover) {
			&:not(:hover) .hover_content_wrapper {
				opacity: 0;
				pointer-events: none;
			}
			&:not(:hover) .hover_content_wrapper:before {
				bottom: 100%;
			}
		}
	}

    /* & > a::after {
        content: '';
        display: block;
        width: 0px;
        height: 3px;
        background-color: #000;
        transform: translateY(50px);
    }
    
    & > a:hover::after {
        width: 100%;
        transition: width 0.3s;
    } */
}

.service-list-advanced--placeholder {
	display: none;
	max-height: 100%;
	transition: opacity var(--transition-duration);
	overflow: hidden;
	pointer-events: none;
	z-index: 3;

	& .service-list-advanced--placeholder-media {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.service-list-advanced:hover + .service-list-advanced--placeholder {
	opacity: 0;
}