/* BerlinerBart Amazon Affiliate – Frontend-Styles
   Bewusst neutral gehalten, damit es sich in dein Theme einfügt.
   Alle Klassen mit .bba- Präfix, damit nichts kollidiert. */

.bba-card {
	box-sizing: border-box;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fff;
	padding: 16px;
	margin: 0 0 1.5em 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.bba-card * { box-sizing: border-box; }

.bba-card a { text-decoration: none; }
.bba-card a:hover { text-decoration: underline; }

.bba-img { margin: 0 0 10px 0; text-align: center; }
.bba-img img {
	max-width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: contain;
	display: inline-block;
}

.bba-brand {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.65;
	margin-bottom: 2px;
}

.bba-title {
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 6px 0;
}
.bba-title a { color: inherit; }

.bba-features {
	margin: 8px 0;
	padding-left: 1.1em;
	font-size: 0.88rem;
	opacity: 0.9;
}
.bba-features li { margin: 2px 0; }

.bba-price {
	font-size: 1.35rem;
	font-weight: 700;
	color: #b12704; /* Amazon-typisches Preis-Rot */
	margin: 8px 0 2px 0;
}
.bba-price-note {
	font-size: 0.72rem;
	opacity: 0.6;
	margin-bottom: 8px;
}

.bba-actions { margin: 10px 0 4px; }

.bba-btn {
	display: inline-block;
	background: #ffd814;
	color: #0f1111 !important;
	border: 1px solid #fcd200;
	border-radius: 999px;
	padding: 9px 20px;
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease;
}
.bba-btn:hover {
	background: #f7ca00;
	text-decoration: none !important;
}

/* Sterne */
.bba-stars {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0 6px;
	font-size: 1rem;
	line-height: 1;
}
.bba-stars-empty {
	position: relative;
	display: inline-block;
	color: #d9d9d9;
	letter-spacing: 2px;
	white-space: nowrap;
}
.bba-stars-full {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #ffa41c;
	white-space: nowrap;
}
.bba-stars-count {
	font-size: 0.8rem;
	opacity: 0.7;
	letter-spacing: normal;
}

.bba-disclaimer {
	font-size: 0.72rem;
	opacity: 0.6;
	margin-top: 8px;
}

.bba-adminnotice {
	font-size: 0.8rem;
	background: #fff8e5;
	border: 1px dashed #d0a000;
	color: #6b5300;
	padding: 6px 10px;
	border-radius: 6px;
	margin: 0 0 8px 0;
}

/* ---------- Layout 1: volle Breite, Bild links ---------- */
.bba-1 {
	width: 100%;
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}
.bba-1 .bba-img {
	flex: 0 0 220px;
	max-width: 220px;
	margin: 0;
}
.bba-1 .bba-body {
	flex: 1 1 260px;
	min-width: 240px;
}

/* ---------- Layout 2: mittel, Float ---------- */
.bba-2 {
	width: min(50%, 340px);
	max-width: 100%;
}
.bba-2.bba-left  { float: left;  margin: 0 24px 16px 0; }
.bba-2.bba-right { float: right; margin: 0 0 16px 24px; }
.bba-2 .bba-price { font-size: 1.15rem; }

/* ---------- Layout 3: klein, Float ---------- */
.bba-3 {
	width: min(42%, 230px);
	max-width: 100%;
	padding: 12px;
}
.bba-3.bba-left  { float: left;  margin: 0 20px 14px 0; }
.bba-3.bba-right { float: right; margin: 0 0 14px 20px; }
.bba-3 .bba-title { font-size: 0.9rem; }
.bba-3 .bba-btn { padding: 7px 14px; font-size: 0.85rem; }

/* ---------- Mobil: keine Floats, volle Breite ---------- */
@media (max-width: 600px) {
	.bba-1 { flex-direction: column; }
	.bba-1 .bba-img { flex-basis: auto; max-width: 100%; }
	.bba-2, .bba-3 {
		float: none !important;
		width: 100%;
		margin: 0 0 1.5em 0 !important;
	}
}

/* Dark-Mode-freundlich (nur wenn Theme prefers-color-scheme unterstützt) */
@media (prefers-color-scheme: dark) {
	.bba-card {
		background: #1e1e1e;
		border-color: #3a3a3a;
	}
	.bba-price { color: #ff8a7a; }
	.bba-btn { color: #0f1111 !important; }
}
