/**
 * Amazon Creator Links — frontend styles
 */

.aalc-wrap {
	--aalc-cols: 3;
	--aalc-gap: 20px;
	--aalc-radius: 10px;
	--aalc-border-width: 1px;
	--aalc-border: rgba(0, 0, 0, .09);
	--aalc-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	--aalc-shadow-hover: 0 6px 20px rgba(0, 0, 0, .09);
	--aalc-img-h: 170px;
	--aalc-muted: rgba(0, 0, 0, .58);
	--aalc-strike: rgba(0, 0, 0, .72);
	--aalc-accent: #067d62;
	--aalc-deal: #cc0c39;
	--aalc-btn-bg: #ffd814;
	--aalc-btn-bg-hover: #f7ca00;
	--aalc-btn-border: #fcd200;
	--aalc-btn-text: #0f1111;
	--aalc-surface: #fff;

	margin: 1.75rem 0;
	container-type: inline-size;
}

/* Where color-mix is available, secondary text follows the theme's own
   text colour instead of a fixed grey — otherwise it vanishes on dark
   backgrounds. */
@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {

	.aalc-wrap {
		--aalc-muted: color-mix(in srgb, currentColor 62%, transparent);
		--aalc-strike: color-mix(in srgb, currentColor 78%, transparent);
	}
}

.aalc-heading {
	margin: 0 0 1rem;
	font-size: 1.15em;
	line-height: 1.3;
}

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */

.aalc-items {
	display: grid;
	grid-template-columns: repeat(var(--aalc-cols), minmax(0, 1fr));
	gap: var(--aalc-gap);
	margin: 0;
	padding: 0;
}

.aalc-list .aalc-items {
	grid-template-columns: 1fr;
	gap: 1rem;
}

/* ---------------------------------------------------------------
   Card
   --------------------------------------------------------------- */

.aalc-item {
	display: flex;
	flex-direction: column;
	background: var(--aalc-surface);
	border: var(--aalc-border-width) solid var(--aalc-border);
	border-radius: var(--aalc-radius);
	padding: 1rem;
	box-shadow: var(--aalc-shadow);
	transition: box-shadow .18s ease, transform .18s ease;
	overflow: hidden;
}

.aalc-item:hover {
	box-shadow: var(--aalc-shadow-hover);
	transform: translateY(-2px);
}

.aalc-list .aalc-item {
	flex-direction: row;
	gap: 1.15rem;
	align-items: stretch;
}

.aalc-list .aalc-item:hover {
	transform: none;
}

/* Thumbnail */

.aalc-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--aalc-img-h);
	margin-bottom: .85rem;
	text-decoration: none;
}

.aalc-list .aalc-thumb {
	flex: 0 0 150px;
	height: auto;
	min-height: 140px;
	margin-bottom: 0;
}

.aalc-thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .2s ease;
}

.aalc-item:hover .aalc-thumb img {
	transform: scale(1.04);
}

/* Body */

.aalc-body {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	flex: 1;
	min-width: 0;
}

.aalc-title {
	font-weight: 600;
	font-size: .95em;
	line-height: 1.4;
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.aalc-title:hover,
.aalc-title:focus-visible {
	text-decoration: underline;
}

.aalc-list .aalc-title {
	font-size: 1.02em;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.aalc-brand {
	font-size: .82em;
	color: var(--aalc-muted);
	line-height: 1.2;
}

.aalc-features {
	margin: .15rem 0 0;
	padding-left: 1.05rem;
	font-size: .82em;
	color: var(--aalc-muted);
	line-height: 1.45;
}

.aalc-features li {
	margin-bottom: .25em;
}

/* Meta block pushes the button to the bottom */

.aalc-meta {
	margin-top: auto;
	padding-top: .35rem;
	display: flex;
	flex-direction: column;
	gap: .3rem;
}

.aalc-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .45rem;
}

.aalc-price {
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.aalc-list-price {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	color: var(--aalc-strike);
	font-size: .9em;
	white-space: nowrap;
	opacity: 1;
}

.aalc-saving {
	background: var(--aalc-deal);
	color: #fff;
	font-size: .74em;
	font-weight: 700;
	padding: .15em .5em;
	border-radius: 3px;
	line-height: 1.5;
	white-space: nowrap;
}

.aalc-availability {
	font-size: .8em;
	line-height: 1.2;
}

.aalc-availability.in-stock {
	color: var(--aalc-accent);
}

.aalc-availability.out-of-stock {
	color: var(--aalc-deal);
}

/* Button */

.aalc-button {
	margin-top: .7rem;
	align-self: flex-start;
	display: inline-block;
	padding: .55em 1.25em;
	border-radius: 999px;
	background: var(--aalc-btn-bg);
	border: 1px solid var(--aalc-btn-border);
	color: var(--aalc-btn-text);
	font-size: .87em;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	text-align: center;
	transition: background .15s ease;
}

.aalc-button:hover,
.aalc-button:focus-visible {
	background: var(--aalc-btn-bg-hover);
	color: var(--aalc-btn-text);
	text-decoration: none;
}

.aalc-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Single product — spans the full width
   --------------------------------------------------------------- */

.aalc-items > .aalc-item:only-child {
	grid-column: 1 / -1;
}

/* On roomy viewports a lone card reads better side by side than stretched. */
@media (min-width: 641px) {

	.aalc-grid .aalc-items > .aalc-item:only-child {
		flex-direction: row;
		gap: 1.5rem;
		align-items: stretch;
		padding: 1.35rem;
	}

	.aalc-grid .aalc-items > .aalc-item:only-child:hover {
		transform: none;
	}

	.aalc-grid .aalc-items > .aalc-item:only-child .aalc-thumb,
	.aalc-grid .aalc-items > .aalc-item:only-child .aalc-sk-thumb {
		flex: 0 0 clamp(160px, 26%, 240px);
		height: auto;
		min-height: 190px;
		margin-bottom: 0;
	}

	.aalc-grid .aalc-items > .aalc-item:only-child .aalc-title {
		font-size: 1.15em;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.aalc-grid .aalc-items > .aalc-item:only-child .aalc-price {
		font-size: 1.45em;
	}

	.aalc-grid .aalc-items > .aalc-item:only-child .aalc-features {
		font-size: .88em;
	}

	.aalc-grid .aalc-items > .aalc-item:only-child .aalc-button {
		padding: .7em 1.9em;
		font-size: .92em;
	}
}

/* ---------------------------------------------------------------
   Notes, disclosure, errors
   --------------------------------------------------------------- */

.aalc-disclosure {
	font-size: .78em;
	color: var(--aalc-muted);
	margin: .85rem 0 0;
	line-height: 1.5;
}

.aalc-note {
	grid-column: 1 / -1;
	margin: 0;
	padding: 1rem;
	font-size: .9em;
	color: var(--aalc-muted);
	text-align: center;
	border: 1px dashed var(--aalc-border);
	border-radius: var(--aalc-radius);
}

.aalc-note-error {
	border-style: solid;
	border-color: rgba(204, 12, 57, .3);
	background: rgba(204, 12, 57, .04);
	color: var(--aalc-deal);
}

.aalc-error {
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	padding: .8em 1em;
	margin: 1em 0;
	font-size: .9em;
	border-radius: 4px;
}

/* ---------------------------------------------------------------
   Consent placeholder
   --------------------------------------------------------------- */

.aalc-consent {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2rem 1.25rem;
	border: 1px dashed var(--aalc-border);
	border-radius: var(--aalc-radius);
	background: rgba(0, 0, 0, .015);
}

.aalc-consent p {
	margin: 0 0 1rem;
	font-size: .92em;
	color: var(--aalc-muted);
	line-height: 1.55;
}

.aalc-consent-btn {
	display: inline-block;
	padding: .6em 1.4em;
	border-radius: 999px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font-size: .87em;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.aalc-consent-btn:hover {
	background: currentColor;
	color: var(--aalc-surface);
}

/* ---------------------------------------------------------------
   Skeleton loading state
   --------------------------------------------------------------- */

.aalc-skeleton {
	pointer-events: none;
	box-shadow: none;
}

.aalc-skeleton:hover {
	transform: none;
	box-shadow: none;
}

.aalc-sk-thumb,
.aalc-sk-line,
.aalc-sk-btn {
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, .06) 25%,
		rgba(0, 0, 0, .11) 37%,
		rgba(0, 0, 0, .06) 63%
	);
	background-size: 400% 100%;
	animation: aalc-shimmer 1.4s ease-in-out infinite;
	border-radius: 4px;
}

.aalc-sk-thumb {
	height: var(--aalc-img-h);
	margin-bottom: .85rem;
	border-radius: 6px;
}

.aalc-list .aalc-sk-thumb {
	flex: 0 0 150px;
	height: 140px;
	margin-bottom: 0;
}

.aalc-sk-line {
	height: 12px;
	margin-bottom: .55rem;
}

.aalc-sk-line.w90 { width: 90%; }
.aalc-sk-line.w70 { width: 70%; }
.aalc-sk-line.w40 { width: 40%; height: 18px; }

.aalc-sk-btn {
	margin-top: .8rem;
	width: 130px;
	height: 34px;
	border-radius: 999px;
}

@keyframes aalc-shimmer {
	0%   { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
	.aalc-sk-thumb,
	.aalc-sk-line,
	.aalc-sk-btn {
		animation: none;
	}

	.aalc-item,
	.aalc-thumb img {
		transition: none;
	}
}

/* ---------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------
   repeat() only accepts an <integer> as its count — repeat(min(...))
   is invalid and the whole declaration gets dropped, which is what
   removed the grid on every screen below 1101px.

   Instead the track minimum is the larger of a readable card width
   and the ideal share for the configured column count. auto-fit then
   never produces more columns than configured, and reduces them on
   its own as the container narrows. No math functions in repeat().
   --------------------------------------------------------------- */

.aalc-grid .aalc-items {
	/* Smallest sensible card width — lowered per breakpoint below. */
	--aalc-min: 210px;

	/* Width one card would get at the configured column count.
	   The 1px comes off so sub-pixel rounding cannot drop the last
	   column — without it a 6-column setting renders as 5. */
	--aalc-ideal: calc(
		((100% - (var(--aalc-cols) - 1) * var(--aalc-gap)) / var(--aalc-cols)) - 1px
	);

	grid-template-columns: repeat(
		auto-fit,
		minmax(min(100%, max(var(--aalc-min), var(--aalc-ideal))), 1fr)
	);
}

/* Nothing may push the layout wider than its container. */
.aalc-wrap,
.aalc-items {
	max-width: 100%;
	min-width: 0;
}

.aalc-item,
.aalc-body {
	min-width: 0;
}

.aalc-title,
.aalc-brand,
.aalc-features li,
.aalc-desc {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.aalc-thumb img,
.aalc-gallery-item img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.aalc-wrap {
		--aalc-gap: 16px;
	}

	.aalc-grid .aalc-items {
		--aalc-min: 190px;
	}
}

@media (max-width: 700px) {
	.aalc-grid .aalc-items {
		--aalc-min: 160px;
	}

	.aalc-item {
		padding: .85rem;
	}

	.aalc-thumb,
	.aalc-sk-thumb {
		height: clamp(110px, 28vw, var(--aalc-img-h));
	}

	.aalc-title {
		font-size: .9em;
	}

	.aalc-price {
		font-size: 1.05em;
	}
}

@media (max-width: 560px) {
	.aalc-wrap {
		--aalc-gap: 12px;
	}

	/* Two columns stay readable down to roughly 340px of content width. */
	.aalc-grid .aalc-items {
		--aalc-min: 140px;
	}

	.aalc-button {
		align-self: stretch;
		padding: .65em .8em;
		font-size: .82em;
	}

	.aalc-list .aalc-item {
		gap: .85rem;
	}

	.aalc-list .aalc-thumb,
	.aalc-list .aalc-sk-thumb {
		flex: 0 0 92px;
		min-height: 92px;
	}
}

/* Below this a second column would leave no usable card width. */
@media (max-width: 360px) {
	.aalc-grid .aalc-items {
		--aalc-min: 100%;
	}

	.aalc-grid .aalc-thumb,
	.aalc-grid .aalc-sk-thumb {
		height: 190px;
	}

	.aalc-list .aalc-item {
		flex-direction: column;
	}

	.aalc-list .aalc-thumb,
	.aalc-list .aalc-sk-thumb {
		flex: none;
		width: 100%;
		height: 180px;
	}
}

/* Container queries react to the column the widget sits in rather than
   the viewport — a sidebar gets the narrow layout on a desktop too. */
@supports (container-type: inline-size) {

	@container (max-width: 700px) {
		.aalc-grid .aalc-items {
			--aalc-min: 160px;
		}
	}

	@container (max-width: 480px) {
		.aalc-grid .aalc-items {
			--aalc-min: 140px;
		}
	}

	@container (max-width: 340px) {
		.aalc-grid .aalc-items {
			--aalc-min: 100%;
		}

		.aalc-list .aalc-item,
		.aalc-standard .aalc-item {
			flex-direction: column;
		}
	}
}

/* ---------------------------------------------------------------
   Dark mode
   --------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
	.aalc-wrap {
		--aalc-surface: rgba(255, 255, 255, .04);
		--aalc-border: rgba(255, 255, 255, .13);
		--aalc-muted: rgba(255, 255, 255, .62);
		--aalc-strike: rgba(255, 255, 255, .78);
		--aalc-shadow: none;
		--aalc-shadow-hover: 0 6px 20px rgba(0, 0, 0, .4);
		--aalc-accent: #4ade80;
	}

	.aalc-thumb img {
		mix-blend-mode: normal;
	}

	.aalc-sk-thumb,
	.aalc-sk-line,
	.aalc-sk-btn {
		background: linear-gradient(
			90deg,
			rgba(255, 255, 255, .06) 25%,
			rgba(255, 255, 255, .12) 37%,
			rgba(255, 255, 255, .06) 63%
		);
		background-size: 400% 100%;
	}

	.aalc-error {
		background: rgba(214, 54, 56, .12);
	}
}

/* ===============================================================
   LAYOUT: Kompakt — schmale Zeilen für Sidebars
   =============================================================== */

.aalc-compact .aalc-items {
	grid-template-columns: 1fr;
	gap: 0;
}

.aalc-compact .aalc-item {
	flex-direction: row;
	align-items: center;
	gap: .85rem;
	padding: .75rem .25rem;
	border: 0;
	border-bottom: 1px solid var(--aalc-border);
	border-radius: 0;
	box-shadow: none;
}

.aalc-compact .aalc-item:last-child {
	border-bottom: 0;
}

.aalc-compact .aalc-item:hover {
	transform: none;
	box-shadow: none;
	background: rgba(0, 0, 0, .02);
}

.aalc-compact .aalc-thumb {
	flex: 0 0 64px;
	height: 64px;
	margin-bottom: 0;
}

.aalc-compact .aalc-body {
	gap: .2rem;
}

.aalc-compact .aalc-title {
	font-size: .87em;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.aalc-compact .aalc-meta {
	margin-top: .1rem;
	padding-top: 0;
}

.aalc-compact .aalc-price {
	font-size: 1em;
}

.aalc-compact .aalc-button {
	margin-top: .25rem;
	padding: .3em .8em;
	font-size: .78em;
}

/* ===============================================================
   LAYOUT: Bestenliste — nummerierte Platzierungen
   =============================================================== */

.aalc-top .aalc-items {
	grid-template-columns: 1fr;
	gap: .85rem;
}

.aalc-top .aalc-item {
	flex-direction: row;
	align-items: stretch;
	gap: 1.25rem;
	padding: 1.15rem 1.15rem 1.15rem 3.25rem;
	position: relative;
}

.aalc-top .aalc-item:hover {
	transform: none;
}

.aalc-top .aalc-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	left: 0;
	width: 2.5rem;
	height: 100%;
	background: var(--aalc-accent);
	color: #fff;
	font-size: 1.1em;
	font-weight: 800;
	line-height: 1;
}

/* Winner stands out */
.aalc-top .aalc-item:first-child {
	border-color: var(--aalc-accent);
	border-width: 2px;
}

.aalc-top .aalc-item:first-child .aalc-rank {
	background: var(--aalc-deal);
	font-size: 1.35em;
}

.aalc-top .aalc-thumb {
	flex: 0 0 clamp(90px, 18%, 150px);
	height: auto;
	min-height: 110px;
	margin-bottom: 0;
}

.aalc-top .aalc-title {
	font-size: 1.05em;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.aalc-top .aalc-price {
	font-size: 1.3em;
}

/* ===============================================================
   LAYOUT: Vergleichstabelle
   =============================================================== */

.aalc-table .aalc-items {
	grid-template-columns: 1fr;
	gap: 0;
	border: var(--aalc-border-width) solid var(--aalc-border);
	border-radius: var(--aalc-radius);
	overflow: hidden;
}

.aalc-table .aalc-item {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 1rem;
	border: 0;
	border-bottom: 1px solid var(--aalc-border);
	border-radius: 0;
	box-shadow: none;
	padding: .9rem 1.1rem;
}

.aalc-table .aalc-item:last-child {
	border-bottom: 0;
}

.aalc-table .aalc-item:nth-child(odd) {
	background: rgba(0, 0, 0, .018);
}

.aalc-table .aalc-item:hover {
	transform: none;
	box-shadow: none;
	background: rgba(0, 0, 0, .04);
}

.aalc-table .aalc-thumb {
	height: 80px;
	margin-bottom: 0;
}

.aalc-table .aalc-body {
	display: contents;
}

.aalc-table .aalc-title {
	grid-column: 2;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	align-self: center;
}

.aalc-table .aalc-meta {
	grid-column: 3;
	margin-top: 0;
	padding-top: 0;
	align-items: flex-end;
	text-align: right;
	white-space: nowrap;
}

.aalc-table .aalc-price-row {
	justify-content: flex-end;
}

.aalc-table .aalc-button {
	grid-column: 4;
	margin-top: 0;
	align-self: center;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.aalc-table .aalc-item {
		grid-template-columns: 70px minmax(0, 1fr);
		grid-template-areas:
			"thumb title"
			"thumb meta"
			"btn   btn";
		gap: .5rem .85rem;
	}

	.aalc-table .aalc-thumb  { grid-area: thumb; height: 70px; }
	.aalc-table .aalc-title  { grid-area: title; grid-column: auto; }
	.aalc-table .aalc-meta   { grid-area: meta;  grid-column: auto; align-items: flex-start; text-align: left; }
	.aalc-table .aalc-price-row { justify-content: flex-start; }
	.aalc-table .aalc-button { grid-area: btn;   grid-column: auto; margin-top: .4rem; }
}

/* ===============================================================
   LAYOUT: Karussell — horizontal scrollbar
   =============================================================== */

.aalc-carousel .aalc-items {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 1rem;
	gap: var(--aalc-gap);
	padding-bottom: .85rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.aalc-carousel .aalc-item {
	flex: 0 0 clamp(200px, calc((100% - (var(--aalc-cols) - 1) * var(--aalc-gap)) / var(--aalc-cols)), 340px);
	scroll-snap-align: start;
}

.aalc-carousel .aalc-items::-webkit-scrollbar {
	height: 6px;
}

.aalc-carousel .aalc-items::-webkit-scrollbar-thumb {
	background: var(--aalc-border);
	border-radius: 999px;
}

@media (max-width: 640px) {
	.aalc-carousel .aalc-item {
		flex: 0 0 min(72%, 260px);
	}
}

/* ===============================================================
   LAYOUT: Einzelprodukt (Hero)
   =============================================================== */

.aalc-hero .aalc-items {
	grid-template-columns: 1fr;
}

.aalc-hero .aalc-item {
	padding: 1.75rem;
}

.aalc-hero .aalc-item:hover {
	transform: none;
}

.aalc-hero .aalc-title {
	font-size: 1.35em;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.aalc-hero .aalc-price {
	font-size: 1.75em;
}

.aalc-hero .aalc-features {
	font-size: .92em;
}

.aalc-hero .aalc-button {
	padding: .85em 2.2em;
	font-size: 1em;
}

@media (min-width: 641px) {
	.aalc-hero .aalc-item {
		flex-direction: row;
		gap: 2rem;
		align-items: stretch;
	}

	.aalc-hero .aalc-thumb,
	.aalc-hero .aalc-sk-thumb {
		flex: 0 0 clamp(200px, 34%, 320px);
		height: auto;
		min-height: 240px;
		margin-bottom: 0;
	}
}

/* ===============================================================
   Dark mode tweaks for the added layouts
   =============================================================== */

@media (prefers-color-scheme: dark) {

	.aalc-compact .aalc-item:hover,
	.aalc-table .aalc-item:hover {
		background: rgba(255, 255, 255, .05);
	}

	.aalc-table .aalc-item:nth-child(odd) {
		background: rgba(255, 255, 255, .025);
	}
}

/* ===============================================================
   Zusatzelemente: Anzeige-Label, Galerie, Beschreibung, Preishinweis
   =============================================================== */

.aalc-ad-label {
	display: block;
	font-size: .82em;
	color: var(--aalc-muted);
	margin-bottom: .6rem;
}

/* Thumbnail-Galerie */

.aalc-gallery {
	display: flex;
	gap: 5px;
	margin-top: .6rem;
	flex-wrap: wrap;
}

.aalc-gallery-item {
	display: block;
	width: 52px;
	height: 52px;
	border: 1px solid var(--aalc-border);
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
	transition: border-color .15s ease;
}

.aalc-gallery-item:hover {
	border-color: var(--aalc-accent);
}

.aalc-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Preis-Zeitstempel */

.aalc-price-note {
	display: block;
	font-size: .76em;
	color: var(--aalc-muted);
	line-height: 1.5;
	margin-top: .15rem;
}

.aalc-price-note a {
	color: inherit;
	text-decoration: underline;
}

/* Beschreibung mit Weiterlesen */

.aalc-desc-wrap {
	margin-top: .5rem;
	font-size: .88em;
	line-height: 1.6;
}

.aalc-desc-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.aalc-desc {
	display: block;
	color: inherit;
}

.aalc-desc.is-clamped {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aalc-desc-toggle:checked ~ .aalc-desc.is-clamped {
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}

.aalc-desc-more {
	display: inline-block;
	margin-top: .2rem;
	color: var(--aalc-accent);
	font-size: .95em;
	cursor: pointer;
	text-decoration: underline;
}

.aalc-desc-more .aalc-more-close,
.aalc-desc-toggle:checked ~ .aalc-desc-more .aalc-more-open {
	display: none;
}

.aalc-desc-toggle:checked ~ .aalc-desc-more .aalc-more-close {
	display: inline;
}

.aalc-desc-toggle:focus-visible ~ .aalc-desc-more {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ===============================================================
   LAYOUT: Standard (klassisch)
   =============================================================== */

.aalc-standard .aalc-items {
	grid-template-columns: 1fr;
	gap: 2rem;
}

.aalc-standard .aalc-item {
	flex-direction: row;
	align-items: flex-start;
	gap: 1.75rem;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	overflow: visible;
}

.aalc-standard .aalc-item:hover {
	transform: none;
	box-shadow: none;
}

/* Linke Spalte: Hauptbild + Galerie */

.aalc-standard .aalc-thumb {
	flex: 0 0 clamp(140px, 22%, 200px);
	height: auto;
	min-height: 150px;
	margin-bottom: 0;
	align-items: flex-start;
}

.aalc-standard .aalc-gallery {
	order: 2;
	flex: 0 0 clamp(140px, 22%, 200px);
	margin-top: 0;
}

/* Hauptbild und Galerie in eine Spalte zwingen */
.aalc-standard .aalc-item {
	display: grid;
	grid-template-columns: clamp(140px, 22%, 200px) minmax(0, 1fr);
	grid-template-areas:
		"thumb   body"
		"gallery body";
	align-content: start;
	row-gap: .7rem;
	column-gap: 1.75rem;
}

.aalc-standard .aalc-thumb   { grid-area: thumb; }
.aalc-standard .aalc-gallery { grid-area: gallery; }
.aalc-standard .aalc-body    { grid-area: body; }

/* Rechte Spalte */

.aalc-standard .aalc-title {
	font-size: 1.3em;
	font-weight: 600;
	line-height: 1.35;
	color: #0f5a8f;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	display: block;
	margin-bottom: .55rem;
}

.aalc-standard .aalc-brand {
	margin-bottom: .3rem;
}

.aalc-standard .aalc-meta {
	margin-top: 0;
	padding-top: 0;
	display: block;
}

.aalc-standard .aalc-price-row {
	display: inline-flex;
	align-items: baseline;
	gap: .55rem;
	margin-right: .4rem;
}

/* Rabatt-Badge links vom Preis, wie im Original */
.aalc-standard .aalc-saving {
	order: -1;
	background: var(--aalc-accent);
	border-radius: 2px;
	font-size: .82em;
	padding: .2em .55em;
}

.aalc-standard .aalc-list-price {
	font-size: 1em;
	order: 0;
	color: var(--aalc-strike);
}

.aalc-standard .aalc-price {
	color: var(--aalc-deal);
	font-size: 1.15em;
	order: 1;
}

.aalc-standard .aalc-price-note {
	display: inline;
	margin-top: 0;
}

.aalc-standard .aalc-desc-wrap {
	display: inline;
	margin-top: 0;
}

.aalc-standard .aalc-desc {
	display: inline;
}

.aalc-standard .aalc-desc.is-clamped {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	line-clamp: 6;
}

.aalc-standard .aalc-button {
	margin-top: 1rem;
	align-self: flex-start;
}

.aalc-standard .aalc-availability {
	display: block;
	margin-top: .35rem;
}

@media (max-width: 640px) {

	.aalc-standard .aalc-item {
		grid-template-columns: 1fr;
		grid-template-areas:
			"thumb"
			"gallery"
			"body";
		column-gap: 0;
	}

	.aalc-standard .aalc-thumb {
		height: 200px;
		justify-content: center;
	}

	.aalc-standard .aalc-gallery {
		justify-content: center;
	}

	.aalc-standard .aalc-title {
		font-size: 1.1em;
	}
}

@media (prefers-color-scheme: dark) {

	.aalc-standard .aalc-title {
		color: #7cc0f0;
	}

	.aalc-gallery-item {
		background: rgba(255, 255, 255, .06);
	}

	.aalc-gallery-item img {
		mix-blend-mode: normal;
	}
}

/* Listenpreis-Bezeichnung */

.aalc-list-label {
	text-decoration: none;
	display: inline;
	font-size: .92em;
	opacity: .85;
}

.aalc-list-price {
	display: inline-flex;
	gap: .25em;
	align-items: baseline;
	text-decoration: none;
}

.aalc-list-amount {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}
