/* EC Frauuhlig Sale – Landingpage, Warenkorb-Box, Produktseite.
 * Mobile-first & seniorenfreundlich: große Schrift, hoher Kontrast, klare Schritte.
 * Karten-Optik (.products li.ec-loop-card …) kommt aus dem Theme-style.css.
 * Das Grid definieren wir selbst, da die Theme-Grid-Regeln an .woocommerce-
 * Ancestor-Klassen hängen, die auf einer normalen Seite fehlen.
 */

.ec-fhs-main {
	width: 100%;
}

.ec-fhs {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px clamp(16px, 4vw, 48px) 64px;
	box-sizing: border-box;
}

/* ---- Banner (Live-Shopping) ------------------------------------------- */

.ec-fhs-banner {
	position: relative;
	margin: 0 0 24px;
	border-radius: 14px;
	overflow: hidden;
	background: #efe9e0;
}

.ec-fhs-banner__img {
	display: block;
	width: 100%;
	height: 380px;
	object-fit: cover;
	object-position: 72% center;
}

/* Heller Verlauf von links für sichere Lesbarkeit der Schrift */
.ec-fhs-banner__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(247,244,239,0.96) 0%, rgba(247,244,239,0.85) 28%, rgba(247,244,239,0.2) 55%, rgba(247,244,239,0) 75%);
}

.ec-fhs-banner__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 0 8%;
	max-width: 70%;
	color: #1c1c1a;
}

.ec-fhs-banner__logo {
	height: 34px;
	width: auto;
	max-width: 200px;
	margin: 0 0 6px;
}

.ec-fhs-banner__eyebrow {
	margin: 0;
	font-size: clamp(13px, 1.6vw, 16px);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b8945a;
	font-weight: 700;
}

.ec-fhs-banner__live {
	margin: 0;
	line-height: 1.1;
}

.ec-fhs-banner__live span {
	display: block;
	font-size: clamp(18px, 3vw, 26px);
	font-weight: 500;
}

.ec-fhs-banner__live strong {
	display: block;
	font-size: clamp(26px, 5vw, 46px);
	font-weight: 700;
}

.ec-fhs-banner__sub {
	margin: 8px 0 0;
	font-size: clamp(15px, 2vw, 20px);
	font-weight: 600;
}

@media (max-width: 600px) {
	.ec-fhs-banner__img { height: 320px; }
	.ec-fhs-banner__content { max-width: 88%; padding: 0 6%; }
	.ec-fhs-banner__scrim {
		background: linear-gradient(90deg, rgba(247,244,239,0.97) 0%, rgba(247,244,239,0.9) 45%, rgba(247,244,239,0.35) 80%, rgba(247,244,239,0.1) 100%);
	}
}

/* ---- Produkt-Grid ------------------------------------------------------ */

ul.products.ec-fhs__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

ul.products.ec-fhs__grid li.product,
ul.products.ec-fhs__grid li.ec-loop-card {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

/* Einheitliche Karten: Titel auf 2 Zeilen klammern → Preis startet überall
   auf gleicher Höhe; CTA wird an den Kartenboden gedrückt. */
ul.products.ec-fhs__grid li.ec-loop-card .ec-loop-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

ul.products.ec-fhs__grid li.ec-loop-card .ec-loop-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

ul.products.ec-fhs__grid li.ec-loop-card .ec-loop-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

ul.products.ec-fhs__grid li.ec-loop-card .ec-loop-card__price {
	margin-top: 4px;
}

ul.products.ec-fhs__grid li.ec-loop-card .ec-loop-card__cta {
	margin-top: auto;
}

@media (max-width: 1024px) { ul.products.ec-fhs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { ul.products.ec-fhs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px)  { ul.products.ec-fhs__grid { gap: 10px; } }

/* Farb-Varianten unter dem Preis */
.ec-fhs-variants {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.ec-fhs-variants__thumb {
	display: block;
	width: 34px;
	height: 42px;
	border: 1px solid #e7e0d5;
	border-radius: 5px;
	overflow: hidden;
	background: #f6f3ee;
}

.ec-fhs-variants__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Schlüsselanhänger-Hinweis ---------------------------------------- */

.ec-fhs__gift-note {
	margin: 0 0 24px;
	padding: 0;
	background: none;
	border: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #79756d;
	text-align: center;
}

/* ---- Rabatt-Box (full) ------------------------------------------------- */

.ec-fhs-staffel {
	margin: 0 auto 28px;
	max-width: 760px;
	padding: 28px 28px 30px;
	background: #faf8f4;
	border: 1px solid #e7e0d5;
	border-radius: 14px;
	color: #1c1c1a;
	box-sizing: border-box;
}

/* Im Warenkorb schmaler halten (war vorher zu breit). */
.woocommerce-cart .ec-fhs-staffel {
	max-width: 620px;
	margin: 0 auto 28px;
}

.ec-fhs-staffel__head {
	text-align: center;
	margin-bottom: 16px;
}

.ec-fhs-staffel__logo {
	display: block;
	height: 32px;
	width: auto;
	max-width: 180px;
	margin: 0 auto 8px;
}

.ec-fhs-staffel__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: #1c1c1a;
}

/* Schritte: kompakt, aber klar lesbar */
.ec-fhs-steps {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.ec-fhs-step {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 10px;
	background: #fff;
	border: 1px solid #e7e0d5;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.2;
}

.ec-fhs-step.is-active {
	background: #1c1c1a;
	border-color: #1c1c1a;
	color: #fff;
}

.ec-fhs-step__from { font-weight: 600; }
.ec-fhs-step__arrow { opacity: 0.55; font-size: 16px; }
.ec-fhs-step__pct { font-weight: 700; }
.ec-fhs-step.is-active .ec-fhs-step__pct { color: #e8c98f; }

/* Auf etwas breiteren Screens die drei Schritte nebeneinander (spart Höhe). */
@media (min-width: 560px) {
	.ec-fhs-steps { grid-template-columns: repeat(3, 1fr); }
	.ec-fhs-step { padding: 8px 8px; font-size: 13px; }
}

/* Fortschrittsbalken */
.ec-fhs-staffel__bar {
	position: relative;
	height: 10px;
	margin: 0 0 16px;
	background: #e7e0d5;
	border-radius: 999px;
	overflow: hidden;
}

.ec-fhs-staffel__bar-fill {
	position: absolute;
	top: 0; left: 0;
	height: 100%;
	background: #b8945a;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.ec-fhs-staffel__status {
	margin: 0 0 14px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: #1c1c1a;
}

.ec-fhs-staffel__hint {
	margin: 0;
	text-align: center;
	font-size: 12.5px;
	line-height: 1.5;
	color: #79756d;
}

.ec-fhs-staffel .woocommerce-Price-amount { color: inherit; white-space: nowrap; }

/* ---- Mini-Box (Produktseite + Warenkorb-Leiste) ----------------------- */

.ec-fhs-mini {
	max-width: 420px;
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #faf8f4;
	border: 1px solid #e7e0d5;
	border-radius: 10px;
	color: #1c1c1a;
	box-sizing: border-box;
}

.ec-fhs-mini__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
}

.ec-fhs-mini__status {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.ec-fhs-mini__info {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	padding: 0 !important;
	border: 1px solid #b8945a !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #b8945a !important;
	font-size: 13px;
	font-weight: 700;
	font-style: italic;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
}

.ec-fhs-mini__info[aria-expanded="true"] {
	background: #b8945a !important;
	color: #fff !important;
}

.ec-fhs-mini__bar {
	position: relative;
	height: 7px;
	margin: 0 0 10px;
	background: #e7e0d5;
	border-radius: 999px;
	overflow: hidden;
}

.ec-fhs-mini__bar-fill {
	position: absolute;
	top: 0; left: 0;
	height: 100%;
	background: #b8945a;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.ec-fhs-mini__detail {
	margin: 0 0 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e7e0d5;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ec-fhs-mini__detail-row {
	font-size: 14px;
	font-weight: 600;
}

.ec-fhs-mini__detail-note {
	margin-top: 4px;
	font-size: 12.5px;
	color: #79756d;
	line-height: 1.45;
}

.ec-fhs-mini__link {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #b8945a;
	text-decoration: underline;
}

.ec-fhs-mini .woocommerce-Price-amount { white-space: nowrap; }

/* Warenkorb-Leiste: mittig, mit Abstand nach oben */
.ec-fhs-cartbar {
	display: flex;
	justify-content: center;
	margin: 28px 0 16px;
}

.ec-fhs-cartbar .ec-fhs-mini {
	margin: 0;
}

/* ---- Zurück-Button (Produktseite) – im elemente clemente Button-Stil --- */

.ec-fhs-back,
a.ec-fhs-back,
a.ec-fhs-back:link,
a.ec-fhs-back:visited {
	display: inline-flex;
	align-self: flex-start;
	width: auto;
	max-width: max-content;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
	padding: 12px 24px;
	background: #1c1c1a !important;
	color: #fff !important;
	border-radius: 2px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.12px;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
}

.ec-fhs-back:hover,
a.ec-fhs-back:hover,
a.ec-fhs-back:focus {
	background: #4d4f52 !important;
	color: #fff !important;
}

.ec-fhs-back__arrow { font-size: 16px; }

/* ---- Mobile ----------------------------------------------------------- */

@media (max-width: 600px) {
	.ec-fhs { padding: 16px 12px 36px; }
	.ec-fhs-staffel { padding: 22px 16px 24px; }
	.ec-fhs-staffel__title { font-size: 20px; }
	.ec-fhs-steps { gap: 6px; }
	.ec-fhs-step { font-size: 12px; padding: 6px 8px; gap: 5px; border-radius: 5px; }
	.ec-fhs-step__arrow { font-size: 13px; }
	.ec-fhs-staffel__status { font-size: 15px; }
}
