/* ==========================================================================
   MEK7 Featured Grid
   2-Spalten-Raster fuer ausgewaehlte Produkte
   ========================================================================== */

.mek7-fg {
	display: grid;
	gap: 22px;
	margin: 0 0 32px;
}

.mek7-fg--cols-2 { grid-template-columns: repeat(2, 1fr); }
.mek7-fg--cols-1 { grid-template-columns: 1fr; }

/* --- Karte ---------------------------------------------------------------- */
.mek7-fg__card {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid #e7e7e9;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
	min-height: 200px;
}

.mek7-fg__card:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
	transform: translateY(-3px);
	border-color: #d0d0d4;
}

/* --- Bild links (groesser) ----------------------------------------------- */
.mek7-fg__media {
	position: relative;
	flex: 0 0 46%;
	max-width: 46%;
	background: #f6f6f7;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
}

.mek7-fg__img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 230px;
	object-fit: contain;
	margin: 0;
}

/* Angebots-Badge */
.mek7-fg__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #d40000;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: .03em;
	z-index: 2;
}

/* Hersteller-Logo: dezent im Textbereich, ueber dem Titel.
   !important + hohe Spezifitaet, weil Astra/Theme eine Regel
   "img:not(...) { height: auto }" mit hoher Spezifitaet setzt,
   die sonst die feste Logo-Hoehe aushebelt. */
.mek7-fg .mek7-fg__body .mek7-fg__brand {
	margin: 0 0 8px;
	line-height: 0;
}

.mek7-fg .mek7-fg__body .mek7-fg__brand .mek7-fg__brand-logo {
	display: block !important;
	width: auto !important;
	height: 20px !important;
	max-width: 90px !important;
	max-height: 20px !important;
	object-fit: contain !important;
	margin: 0 !important;
}

/* --- Rechte Seite: Preis, Titel, Button ---------------------------------- */
.mek7-fg__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 16px 18px;
	min-width: 0;
}

/* Preis-Block oben */
.mek7-fg__price-wrap {
	margin-bottom: 10px;
}

.mek7-fg__price {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.mek7-fg__price del {
	font-size: 14px;
	font-weight: 400;
	color: #999;
	margin-right: 6px;
}

.mek7-fg__price ins {
	text-decoration: none;
	color: #d40000;
}

.mek7-fg__save {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #d40000;
}

/* Angebots-Countdown */
.mek7-fg__countdown {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	padding: 5px 9px;
	background: #fff4f4;
	border: 1px solid #f3c9c9;
	border-radius: 5px;
}

.mek7-fg__countdown[hidden] {
	display: none;
}

.mek7-fg__countdown-label {
	font-size: 11px;
	font-weight: 600;
	color: #b00000;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.mek7-fg__countdown-clock {
	font-size: 14px;
	font-weight: 700;
	color: #d40000;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Titel: gut lesbar, max. 3 Zeilen, feste Hoehe = alle Karten gleich */
.mek7-fg__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #222;
	margin: 0 0 14px;

	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;

	/* 3 Zeilen * 1.35 * 15px ~= 61px -> einheitliche Kachelhoehe */
	min-height: 61px;
}

/* Button am unteren Rand fix angepinnt */
.mek7-fg__btn {
	margin-top: auto;
	align-self: flex-start;
	display: inline-block;
	background: #1a1a1a;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 11px 20px;
	border-radius: 6px;
	transition: background .15s ease;
}

.mek7-fg__card:hover .mek7-fg__btn {
	background: #d40000;
}

/* --- Tablet --------------------------------------------------------------- */
@media (max-width: 1024px) {
	.mek7-fg { gap: 16px; }
	.mek7-fg__price { font-size: 18px; }
}

/* --- Mobile: immer 1-spaltig (~70% Traffic) ------------------------------- */
@media (max-width: 600px) {
	.mek7-fg--cols-2,
	.mek7-fg--cols-1 {
		grid-template-columns: 1fr;
	}

	.mek7-fg__card { min-height: 0; }

	.mek7-fg__media {
		flex-basis: 42%;
		max-width: 42%;
		padding: 10px;
	}

	.mek7-fg__img { max-height: 150px; }

	.mek7-fg__body { padding: 12px 13px; }

	.mek7-fg__price { font-size: 17px; }

	.mek7-fg__title {
		font-size: 14px;
		margin-bottom: 10px;
		min-height: 57px; /* 3 * 1.35 * 14px */
	}

	.mek7-fg__btn {
		padding: 9px 16px;
		font-size: 13px;
	}

	.mek7-fg .mek7-fg__body .mek7-fg__brand .mek7-fg__brand-logo {
		height: 17px !important;
		max-height: 17px !important;
		max-width: 76px !important;
	}
	.mek7-fg__brand { margin-bottom: 6px; }

	.mek7-fg__countdown { padding: 4px 7px; gap: 5px; }
	.mek7-fg__countdown-label { font-size: 10px; }
	.mek7-fg__countdown-clock { font-size: 13px; }
}

/* Sehr schmale Geraete: Bild oben, Text unten */
@media (max-width: 380px) {
	.mek7-fg__card { flex-direction: column; }
	.mek7-fg__media {
		flex-basis: auto;
		max-width: 100%;
		width: 100%;
	}
	.mek7-fg__img { max-height: 170px; }
}

/* ==========================================================================
   Angebotsseite [mek7_angebote] - "Mehr laden"
   ========================================================================== */

.mek7-fg-offers__more {
	text-align: center;
	margin: 26px 0 8px;
}

.mek7-fg-offers__more-btn {
	display: inline-block;
	background: #1a1a1a;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 14px 32px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}

.mek7-fg-offers__more-btn:hover {
	background: #d40000;
}

.mek7-fg-offers__more-btn:disabled {
	opacity: .6;
	cursor: default;
}

.mek7-fg__empty {
	text-align: center;
	font-size: 15px;
	color: #777;
	padding: 30px 0;
}

/* ==========================================================================
   Featured-Grid - "Alle Angebote ansehen"-Link
   ========================================================================== */

.mek7-fg-more {
	text-align: center;
	margin: 24px 0 8px;
}

.mek7-fg-more__link {
	display: inline-block;
	background: #1a1a1a;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 14px 32px;
	border-radius: 6px;
	text-decoration: none;
	transition: background .15s ease;
}

.mek7-fg-more__link:hover {
	background: #d40000;
	color: #fff;
}
