/* ============================================================
 * Startseite — Layout nach Figma (node 151:4157)
 * ============================================================ */

:root {
	--ec-chalk: #f8f6f2;
	--ec-anthracite: #1c1c1a;
	--ec-text-secondary: #7a7570;
	--ec-border: #d9d4cc;
	--ec-sand: #c4ab8a;
	--ec-surface: #fdfcf9;
}

.ec-home {
	display: flex;
	flex-direction: column;
	background: var(--ec-chalk);
	color: var(--ec-anthracite);
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ec-home > section {
	width: 100%;
}

/* --- Buttons ------------------------------------------------ */
.ec-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border-radius: 2px;
	font-family: "Figtree", sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 1.12px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ec-btn--outline-light,
a.ec-btn--outline-light,
a.ec-btn--outline-light:link,
a.ec-btn--outline-light:visited {
	color: var(--ec-surface) !important;
	border: 1px solid var(--ec-surface) !important;
	background: transparent !important;
}

.ec-btn--outline-light:hover,
a.ec-btn--outline-light:hover,
a.ec-btn--outline-light:focus {
	background: var(--ec-surface) !important;
	color: var(--ec-anthracite) !important;
}

.ec-btn--outline-light .ec-btn__icon path,
a.ec-btn--outline-light .ec-btn__icon path {
	stroke: currentColor;
}

.ec-btn--outline-dark {
	color: var(--ec-anthracite);
	border: 1px solid var(--ec-anthracite);
	background: transparent;
	padding: 13px 24px;
}

.ec-btn--outline-dark:hover {
	background: var(--ec-anthracite);
	color: var(--ec-surface);
}

.ec-btn--solid-dark,
button.ec-btn--solid-dark {
	color: var(--ec-surface) !important;
	background: #4d4f52 !important;
	border: 1px solid #4d4f52 !important;
	padding: 12px 32px;
}

.ec-btn--solid-dark:hover,
button.ec-btn--solid-dark:hover,
button.ec-btn--solid-dark:focus {
	background: #3d3f42 !important;
	border-color: #3d3f42 !important;
	color: var(--ec-surface) !important;
}

.ec-btn__icon {
	flex: 0 0 16px;
}

/* --- Hero --------------------------------------------------- */
.ec-home-hero {
	position: relative;
	aspect-ratio: 16 / 9;
	padding: 0 clamp(24px, 6vw, 80px);
	display: flex;
	align-items: center;
	background-color: #c4ab8c;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--ec-surface);
}

.ec-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(28,28,26,.55) 0%, rgba(28,28,26,0) 58%);
	pointer-events: none;
}

.ec-home-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: 120px 0;
	max-width: 600px;
	z-index: 1;
}

.ec-home-hero,
.ec-home-hero__inner,
.ec-home-hero__eyebrow,
.ec-home-hero__title,
.ec-home-hero__title-line {
	color: var(--ec-surface) !important;
}

.ec-home-hero__eyebrow {
	margin: 0;
	font-weight: 500;
	font-size: 14px;
}

.ec-home-hero__title {
	margin: 0;
	font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
	font-weight: 500;
	font-size: clamp(40px, 5vw, 60px);
	line-height: 1.2;
	letter-spacing: 1.2px;
}

.ec-home-hero__title-line {
	display: block;
}

/* --- Kategorie-Streifen ------------------------------------ */
.ec-home-cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: var(--ec-chalk);
}

.ec-home-cat {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	text-decoration: none;
	color: var(--ec-surface);
	background-color: #9f968f;
	background-size: cover;
	background-repeat: no-repeat;
}

.ec-home-cat::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28,28,26,.1) 0%, rgba(28,28,26,.55) 100%);
	transition: background .3s ease;
}

.ec-home-cat:hover::before {
	background: linear-gradient(180deg, rgba(28,28,26,.2) 0%, rgba(28,28,26,.7) 100%);
}

.ec-home-cat__text {
	position: absolute;
	left: 28px;
	bottom: 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 1;
}

.ec-home-cat,
a.ec-home-cat,
a.ec-home-cat:link,
a.ec-home-cat:visited,
a.ec-home-cat:hover,
.ec-home-cat__text,
.ec-home-cat__title,
.ec-home-cat__link {
	color: var(--ec-surface) !important;
}

.ec-home-cat__title {
	font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 1.3;
}

.ec-home-cat__link {
	font-family: "Figtree", sans-serif;
	font-size: 12px;
}

/* --- Editorial ---------------------------------------------- */
.ec-home-editorial {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.ec-home-editorial__image {
	background-color: #c4ab8c;
	background-size: cover;
	background-repeat: no-repeat;
	aspect-ratio: 4 / 5;
}

.ec-home-editorial__body {
	background: var(--ec-chalk);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	padding: 88px clamp(32px, 7vw, 96px);
}

.ec-home-editorial__eyebrow {
	margin: 0;
	font-family: "Figtree", sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: var(--ec-sand);
}

.ec-home-editorial__title {
	margin: 0;
	font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
	font-weight: 400;
	font-size: clamp(32px, 3.5vw, 44px);
	line-height: 1.2;
	letter-spacing: .44px;
	color: var(--ec-anthracite);
}

.ec-home-editorial__text {
	font-family: "Figtree", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ec-text-secondary);
}

.ec-home-editorial__text > :first-child {
	margin-top: 0;
}

.ec-home-editorial__text > :last-child {
	margin-bottom: 0;
}

.ec-home-editorial .ec-btn {
	align-self: flex-start;
	font-family: "Figtree", sans-serif;
	font-size: 13px;
	letter-spacing: normal;
}

/* --- Produkt-Teaser ---------------------------------------- */
.ec-home-products {
	background: var(--ec-chalk);
	padding: 64px clamp(24px, 5vw, 80px);
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ec-home-products__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ec-home-products__title {
	margin: 0;
	font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 1.25;
	color: var(--ec-anthracite);
}

.ec-home-products__link {
	font-family: "Figtree", sans-serif;
	font-size: 13px;
	color: var(--ec-text-secondary);
	text-decoration: none;
}

.ec-home-products__link:hover {
	color: var(--ec-anthracite);
}

.ec-home-products__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.ec-home-card {
	display: flex;
	flex-direction: column;
	background: var(--ec-chalk);
	text-decoration: none;
	color: var(--ec-anthracite);
}

.ec-home-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1707 / 2560;
	background: #c4ab8c center center / cover no-repeat;
	overflow: hidden;
}

.ec-home-card__media--has-hover::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--ec-card-hover);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
	z-index: 0;
}

.ec-home-card:hover .ec-home-card__media--has-hover::before,
.ec-home-card:focus-visible .ec-home-card__media--has-hover::before {
	opacity: 1;
}

.ec-home-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28,28,26,0) 60%, rgba(28,28,26,.52) 100%);
	pointer-events: none;
	z-index: 1;
}

.ec-home-card__badge { z-index: 2; }

.ec-home-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	display: inline-flex;
	padding: 8px 16px;
	border-radius: 2px;
	font-family: "Figtree", sans-serif;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.ec-home-card__badge--dark { background: var(--ec-anthracite); color: var(--ec-surface); }
.ec-home-card__badge--light { background: var(--ec-surface); color: var(--ec-anthracite); }
.ec-home-card__badge--sand { background: var(--ec-sand); color: var(--ec-anthracite); }

.ec-home-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 16px 24px;
}

.ec-home-card__title {
	font-family: "Figtree", sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.4;
	color: var(--ec-anthracite);
}

.ec-home-card__meta {
	font-family: "Figtree", sans-serif;
	font-size: 12px;
	color: var(--ec-text-secondary);
}

.ec-home-card__price {
	font-family: "Figtree", sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: var(--ec-anthracite);
}

.ec-home-card__price .amount { font-weight: 500; }

.ec-home-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: "Figtree", sans-serif;
	font-weight: 500;
	font-size: 12px;
	color: var(--ec-text-secondary);
	margin-top: 4px;
}

.ec-home-card:hover .ec-home-card__cta {
	color: var(--ec-anthracite);
}

/* --- CTA-Banner -------------------------------------------- */
.ec-home-cta {
	background: #4d4f52;
	color: var(--ec-surface);
	padding: 80px clamp(24px, 8vw, 120px);
}

.ec-home-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	text-align: center;
}

.ec-home-cta__title {
	margin: 0;
	font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 1.25;
}

.ec-home-cta__text {
	margin: 0;
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

/* --- Sustainability-Streifen ------------------------------- */
.ec-home-sustain {
	background: var(--ec-chalk);
	height: 180px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	padding: 0 clamp(24px, 11vw, 160px);
}

.ec-home-sustain__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--ec-text-secondary);
	text-align: center;
}

.ec-home-sustain__item svg {
	color: var(--ec-anthracite);
}

.ec-home-sustain__item p {
	margin: 0;
	font-family: "Figtree", sans-serif;
	font-size: 12px;
	line-height: 1.5;
}

/* --- Kooperationen ----------------------------------------- */
.ec-home-koop {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
}

.ec-home-koop__item {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background-color: #9f968f;
	background-size: cover;
	background-repeat: no-repeat;
	text-decoration: none;
	color: var(--ec-surface);
	overflow: hidden;
}

.ec-home-koop__item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28,28,26,.1) 0%, rgba(28,28,26,.5) 100%);
}

.ec-home-koop__text {
	position: absolute;
	left: 48px;
	bottom: 48px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 1;
}

.ec-home-koop__item,
a.ec-home-koop__item,
a.ec-home-koop__item:link,
a.ec-home-koop__item:visited,
a.ec-home-koop__item:hover,
.ec-home-koop__text,
.ec-home-koop__eyebrow,
.ec-home-koop__title,
.ec-home-koop__link {
	color: var(--ec-surface) !important;
}

.ec-home-koop__eyebrow {
	font-family: "Figtree", sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 1.1px;
}

.ec-home-koop__title {
	font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 1.25;
}

.ec-home-koop__link {
	font-family: "Figtree", sans-serif;
	font-size: 13px;
}

/* --- Newsletter -------------------------------------------- */
.ec-home-newsletter {
	background: var(--ec-chalk);
	padding: 56px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.ec-home-newsletter__title {
	margin: 0;
	font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 1.25;
	color: var(--ec-anthracite);
}

.ec-home-newsletter__text {
	margin: 0;
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	color: var(--ec-text-secondary);
}

.ec-home-newsletter__form {
	display: flex;
	gap: 16px;
	align-items: stretch;
	width: 100%;
	max-width: 520px;
	justify-content: center;
}

.ec-home-newsletter__form input[type="email"] {
	flex: 1;
	max-width: 320px;
	height: 52px;
	padding: 15px 12px;
	border: 1px solid var(--ec-border);
	border-radius: 2px;
	background: var(--ec-surface);
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	color: var(--ec-anthracite);
}

.ec-home-newsletter__form input[type="email"]::placeholder {
	color: var(--ec-text-secondary);
}

.ec-home-newsletter__form .ec-btn {
	height: 52px;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
	.ec-home-products__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.ec-home-hero__inner { padding: 48px 0; }
	.ec-home-cats { grid-template-columns: 1fr; }
	.ec-home-editorial { grid-template-columns: 1fr; }
	.ec-home-editorial__image { min-height: 320px; }
	.ec-home-editorial__body { padding: 48px 24px; }
	.ec-home-sustain { height: auto; padding: 32px 24px; gap: 24px; }
	.ec-home-koop { grid-template-columns: 1fr; }
	.ec-home-koop__text { left: 24px; bottom: 32px; }
	.ec-home-newsletter__form { flex-direction: column; align-items: center; }
	.ec-home-newsletter__form input[type="email"] { max-width: none; width: 100%; }
}

@media (max-width: 520px) {
	.ec-home-products__grid { grid-template-columns: 1fr; }
	.ec-home-sustain { grid-template-columns: repeat(2, 1fr); }
}
