/* Black-Friday-Kacheln (Paket BF7, kachel.php): Optik nach Black Friday 2024. Nur auf Seiten mit der Vorlage 692318. */
.bf-kachel {
	--bf-karte: #1d1d1f;
	--bf-rand: #3a3a3c;
	--bf-text: #f5f5f7;
	--bf-blass: #a1a1a6;
	--bf-gruen: #2f7d6d;
	--bf-gruen-h: #38917f;
	--bf-rot: #c8494b;
	--bf-rot-h: #d95a5c;
	--bf-r: 1.2rem;
	--bf-r-s: .8rem;
	position: relative;
	display: flex;
	gap: 18px;
	height: 100%;
	box-sizing: border-box;
	padding: 14px;
	overflow: hidden;
	border-radius: var(--bf-r);
	background: var(--bf-karte);
	color: var(--bf-text);
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
}
.bf-kachel *, .bf-kachel *::before { box-sizing: border-box; }
.bf-kachel a { color: inherit; text-decoration: none; }
.bf-kachel__bild { flex: 0 0 auto; display: block; overflow: hidden; border-radius: var(--bf-r-s); background: #2c2c2e; }
.bf-kachel__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf-kachel__inhalt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bf-kachel__shop { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--bf-blass); }
.bf-kachel__logo, .bf-kachel__initialen {
	flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; object-fit: contain;
}
.bf-kachel__initialen {
	display: flex; align-items: center; justify-content: center; background: #3a3a3c; color: #fff; font-size: 10px; font-weight: 700;
}
.bf-kachel__shopname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-kachel__gueltig { margin-left: auto; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.bf-kachel__gueltig::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.bf-kachel__name { margin: 0 0 4px; padding: 0; color: inherit; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: normal; }
.bf-kachel__preis { margin-bottom: 6px; font-size: 14px; }
/* kein b: das Theme setzt .w-grid-item b in Klammern */
.bf-kachel__neu { color: #fff; font-weight: 700; }
.bf-kachel__alt { margin-left: 2px; color: var(--bf-blass); }
.bf-kachel__badge {
	display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(47, 125, 109, .25);
	color: #7fd1bd; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.bf-kachel__text {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	margin: 0 0 12px; color: var(--bf-blass); font-size: 14px;
}
.bf-kachel__aktion { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.bf-kachel__deal {
	flex: 1 1 50%; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 99px;
	background: var(--bf-gruen); color: #fff !important; font-weight: 600; transition: background .2s;
}
.bf-kachel__deal:hover, .bf-kachel__deal:focus-visible { background: var(--bf-gruen-h); }
.bf-kachel__code {
	flex: 1 1 50%; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; height: 40px;
	margin: 0; padding: 0 44px 0 14px; border: 1px dashed var(--bf-rand); border-radius: 99px; background: transparent;
	color: var(--bf-text); font: inherit; font-weight: 600; letter-spacing: .02em; line-height: 1; cursor: pointer;
}
.bf-kachel__code:hover, .bf-kachel__code:focus-visible { border-color: var(--bf-blass); }
.bf-kachel__codetext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Kleiner weisser Knopf rechts im Code-Feld; gross: Fahne „Kopieren“ oben rechts wie 2024 */
.bf-kachel__kopieren {
	position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center;
	min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; background: #fff; color: #111;
	font-size: 0; font-weight: 600;
}
.bf-kachel__kopieren::before {
	content: ""; width: 12px; height: 12px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 1h8a2 2 0 0 1 2 2v8h-2V3H5z'/%3E%3Crect x='1' y='5' width='10' height='10' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 1h8a2 2 0 0 1 2 2v8h-2V3H5z'/%3E%3Crect x='1' y='5' width='10' height='10' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bf-kachel__code.ist-kopiert { border-style: solid; border-color: var(--bf-gruen); }
.bf-kachel__code.ist-kopiert .bf-kachel__kopieren { background: var(--bf-gruen); color: #fff; }
.bf-kachel__aktion > :only-child { flex-basis: 100%; }
.bf-kachel__gueltig--fuss { justify-content: center; margin: 10px 0 0; font-size: 11px; color: var(--bf-blass); }

/* gross */
.bf-kachel--gross { padding: 16px; }
.bf-kachel--gross .bf-kachel__bild { width: 270px; height: 270px; }
.bf-kachel--gross .bf-kachel__inhalt { padding: 8px 6px 4px 0; }
.bf-kachel--gross .bf-kachel__name { margin-top: 14px; font-size: 30px; }
.bf-kachel--gross .bf-kachel__preis { font-size: 16px; }
.bf-kachel--gross .bf-kachel__deal, .bf-kachel--gross .bf-kachel__code { height: 52px; font-size: 17px; }
.bf-kachel--gross .bf-kachel__code { padding: 0 14px; }
.bf-kachel--gross .bf-kachel__kopieren {
	top: -12px; right: 22px; transform: none; gap: 6px; height: 26px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
	font-size: 12px;
}
.bf-kachel--gross .bf-kachel__aktion { padding-top: 16px; }

/* Top: Band und roter Knopf */
.bf-kachel--top .bf-kachel__deal { background: var(--bf-rot); }
.bf-kachel--top .bf-kachel__deal:hover, .bf-kachel--top .bf-kachel__deal:focus-visible { background: var(--bf-rot-h); }
.bf-kachel__band {
	position: absolute; top: 22px; left: -34px; z-index: 1; width: 150px; padding: 5px 0; transform: rotate(-45deg);
	background: var(--bf-rot); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4); pointer-events: none;
}

/* mittel */
.bf-kachel--mittel .bf-kachel__bild { width: 150px; height: 150px; }

/* klein: ohne Bild, Gueltig unten */
.bf-kachel--klein { flex-direction: column; gap: 0; padding: 16px; }
.bf-kachel--klein .bf-kachel__shop { margin-bottom: 10px; color: var(--bf-text); font-size: 15px; }
.bf-kachel--klein .bf-kachel__logo, .bf-kachel--klein .bf-kachel__initialen { width: 34px; height: 34px; }
.bf-kachel--klein .bf-kachel__name {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; font-size: 16px;
}
.bf-kachel--klein .bf-kachel__deal { flex: 0 0 40%; }
.bf-kachel--klein .bf-kachel__code { flex: 1 1 60%; }

/* Fussnote zum Sternchen (Vorlage, scripts/black-friday-kacheln-vorlage.php) */
.bf-fussnote { color: #a1a1a6; font-size: 12px; }

/* Tablet */
@media (max-width: 1023px) {
	.bf-kachel--gross .bf-kachel__bild { width: 200px; height: 200px; }
	.bf-kachel--gross .bf-kachel__name { font-size: 24px; }
}
/* Telefon: einspaltig (Spalten der Listen: breakpoint_3 in der Vorlage), gross gestapelt */
@media (max-width: 767px) {
	.bf-kachel--gross { flex-direction: column; gap: 12px; padding: 12px; }
	.bf-kachel--gross .bf-kachel__bild { width: 100%; height: auto; aspect-ratio: 16 / 10; }
	.bf-kachel--gross .bf-kachel__inhalt { padding: 0; }
	.bf-kachel--gross .bf-kachel__name { margin-top: 6px; font-size: 22px; }
	.bf-kachel--gross .bf-kachel__aktion { flex-direction: column; align-items: stretch; gap: 16px; }
	.bf-kachel--gross .bf-kachel__deal, .bf-kachel--gross .bf-kachel__code { flex: none; height: 46px; font-size: 16px; }
	.bf-kachel--mittel { gap: 12px; }
	.bf-kachel--mittel .bf-kachel__bild { width: 96px; height: 96px; }
	.bf-kachel--mittel .bf-kachel__name { font-size: 16px; }
	.bf-kachel--mittel .bf-kachel__gueltig { display: none; }
	.bf-kachel--mittel .bf-kachel__aktion { flex-direction: column; align-items: stretch; gap: 8px; }
	.bf-kachel--mittel .bf-kachel__deal, .bf-kachel--mittel .bf-kachel__code { flex: none; height: 38px; }
	.bf-kachel__band { top: 16px; left: -38px; font-size: 11px; }
}
