.site-main {
	background: var(--gray-200);
}

.section-space {
	padding-top: var(--space-sm);
}

.section-title {
	margin: 0;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.12;
}

.section-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.section-heading__eyebrow {
	margin: 0 0 8px;
	color: var(--gray-500);
	font-size: 16px;
}

.section-heading__title {
	margin-bottom: 24px;
}

.section-heading__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.section-heading .button {
	min-height: 32px;
	padding: 5px 18px;
	font-size: 16px;
}

.home-hero {
	position: relative;
	height: 500px;
	color: var(--gray-white);
	overflow: hidden;
}

.home-hero__slides,
.home-hero__slide {
	position: absolute;
	inset: 0;
}

.home-hero__slide {
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease, visibility 0s linear 900ms;
}

.home-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.home-hero__media {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1)), var(--gray-700);
}

.home-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__content {
	position: absolute;
	top: 168px;
	left: 50%;
	width: calc(100% - 24px);
	max-width: 345px;
	min-height: 260px;
	padding: 52px 30px;
	border-left: 2px solid var(--brand-green);
	background: var(--krimker-de-black-690);
	text-align: center;
	transform: translateX(-50%);
}

.home-hero__title {
	margin: 0;
	font-size: 40px;
	font-weight: 300;
	line-height: 1.1;
}

.home-hero__text {
	margin: 28px 0 0;
	font-size: 16px;
}

.home-hero__button {
	margin-top: 28px;
	border-color: var(--gray-white);
	color: var(--gray-white);
}

.home-hero__button:hover,
.home-hero__button:focus-visible {
	border-color: var(--gray-white);
	color: var(--gray-900);
	background: var(--gray-white);
}

.home-hero__arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	display: flex;
	width: 30px;
	height: 45px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	color: var(--gray-white);
	background: var(--krimker-de-black-200);
	transform: translateY(-50%);
	cursor: pointer;
}

.home-hero__arrow--prev {
	left: 0;
}

.home-hero__arrow--next {
	right: 0;
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__slide {
		transition: none;
	}
}

.showroom-links {
	background: var(--gray-200);
}

.showroom-links__inner {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: var(--gray-white);
}

.showroom-links__link {
	display: flex;
	min-height: 86px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px;
	font-size: 16px;
	text-align: center;
}

.showroom-links__link + .showroom-links__link {
	border-left: 1px solid var(--gray-200);
}

.home-about {
	margin-top: 50px;
}

.home-about__inner {
	display: grid;
	gap: 24px;
}

.home-about__media {
	aspect-ratio: 460 / 430;
	background-position: center;
	background-size: cover;
}

.home-about__eyebrow {
	margin: 0 0 24px;
	font-size: 32px;
	line-height: 1.2;
}

.home-about__title::before {
	display: block;
	width: 40px;
	height: 2px;
	margin-bottom: 15px;
	background: var(--brand-green);
	content: "";
}

.home-about__text {
	margin: 18px 0 0;
	font-size: 16px;
	line-height: 1.5;
}

.product-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 157px 147px 147px;
	gap: 16px;
	margin-top: 24px;
}

.product-gallery__item {
	position: relative;
	min-height: 0;
	overflow: hidden;
}

.product-gallery__image,
.news-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__item--wide {
	grid-column: 1 / -1;
	grid-row: 1;
}

.product-gallery__item--tall {
	grid-column: 1;
	grid-row: 2 / 4;
}

.product-gallery__label {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	max-width: 90%;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	color: var(--gray-white);
	background: var(--krimker-de-black-720);
	font-size: 14px;
}

.news-list,
.review-list {
	display: flex;
	gap: 16px;
	margin-top: 24px;
	overflow: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}

.news-card,
.review-card {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.news-card {
	background: var(--gray-white);
}

.news-card__media {
	position: relative;
	display: block;
	height: 270px;
	overflow: hidden;
}

.news-card__label {
	position: absolute;
	top: 0;
	left: 0;
	padding: 6px 12px;
	color: var(--gray-white);
	background: var(--gray-500);
	font-size: 14px;
}

.news-card__body {
	display: flex;
	min-height: 380px;
	flex-direction: column;
	padding: 16px;
}

.news-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
}

.news-card__text {
	margin: 16px 0;
	color: var(--gray-500);
	font-size: 16px;
}

.news-card__date {
	font-size: 14px;
}

.news-card__link {
	display: flex;
	align-items: center;
	align-self: flex-end;
	gap: 6px;
	margin-top: auto;
	font-size: 14px;
}

.review-card {
	padding: 24px;
	background: var(--gray-100);
}

.review-card__header {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gray-300);
}

.review-card__name {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.review-card__project {
	color: var(--gray-400);
	font-size: 14px;
}

.review-card__project::before {
	margin-right: 8px;
	color: var(--gray-400);
	content: "|";
}

.review-card__text {
	margin: 18px 0 0;
	color: var(--gray-500);
	font-size: 16px;
	line-height: 1.5;
}

.consultation {
	padding-bottom: var(--space-sm);
}

.consultation__form {
	display: grid;
	gap: 11px;
	margin-top: 24px;
}

.consultation__fields {
	display: grid;
	gap: 11px;
}

.consultation__form .field__control {
	min-height: 38px;
	padding: 8px 12px;
	font-size: 16px;
}

.consultation__message {
	min-height: 150px !important;
	resize: vertical;
}

.consultation__submit {
	min-height: 38px;
	padding-block: 7px;
	font-size: 16px;
}

@media (min-width: 768px) {
	.section-space {
		padding-top: var(--space-lg);
	}

	.home-hero {
		height: 750px;
	}

	.home-hero__content {
		top: 250px;
		left: max(90px, calc((100% - var(--container-width)) / 2)); /* 90px keeps the box clear of the arrows */
		width: min(680px, calc(100% - 180px));
		max-width: none;
		min-height: 280px;
		padding: 72px 65px;
		text-align: left;
		transform: none;
	}

	.home-hero__title {
		font-size: 56px;
	}

	.home-hero__text {
		font-size: 20px;
	}

	.home-hero__arrow--prev {
		left: 40px;
	}

	.home-hero__arrow--next {
		right: 40px;
	}

	.showroom-links {
		height: 0;
	}

	.showroom-links__inner {
		position: relative;
		z-index: 3;
		width: 100%;
		margin-inline: auto;
		transform: translateY(-50px);
	}

	.showroom-links__link {
		min-height: 100px;
		font-size: 20px;
	}

	.section-title {
		font-size: 40px;
	}

	.section-heading__eyebrow {
		font-size: 16px;
	}

	.home-about__inner {
		grid-template-columns: 460px 1fr;
		align-items: center;
		gap: 36px;
	}

	.home-about__media {
		height: 430px;
		aspect-ratio: auto;
	}

	.home-about__eyebrow {
		font-size: 32px;
	}

	.home-about__text {
		font-size: 16px;
	}

	.news-card__title {
		font-size: 20px;
	}

	.news-card__text {
		font-size: 16px;
	}

	.review-card__name {
		font-size: 20px;
	}

	.review-card__text {
		font-size: 16px;
	}

	.product-gallery {
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: 405px 380px;
		gap: 24px;
		margin-top: 24px;
	}

	.product-gallery__item {
		min-height: 0;
	}

	.product-gallery__label {
		font-size: 14px;
	}

	.product-gallery__item--tall {
		grid-row: 1 / 3;
	}

	.product-gallery__item--wide {
		grid-column: 2 / 4;
		grid-row: 1;
	}

	.news-list {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.news-card {
		min-width: 0;
	}

	.news-card__media {
		height: 275px;
	}

	.news-card__body {
		min-height: 380px;
	}

	/* Two reviews per view; further reviews scroll with the arrows. */
	.review-list {
		gap: 70px;
	}

	.home-reviews--static .section-heading__actions {
		display: none;
	}

	.review-card {
		flex-basis: calc((100% - 70px) / 2);
		padding: 0;
		background: transparent;
	}

	.consultation {
		padding-bottom: var(--space-lg);
	}

	.consultation__form {
		grid-template-columns: 300px 1fr;
		max-width: 920px;
		margin-inline: auto;
	}

	.consultation__message {
		grid-column: 2;
		grid-row: 1 / 3;
	}

	.consultation__submit {
		grid-column: 1;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.home-about__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.news-list {
		grid-template-columns: repeat(2, 1fr);
	}
}
