/*
 * Soccerloop home page, CRO audit wave 1.
 *
 * The first screen F1 to F13, the mechanism M1/M2 and the proof T1, T2, T6 and
 * T7. Tokens only: every colour and every step comes from the generated custom
 * properties, no hex value of its own. Loaded after global.css and only on the
 * front page.
 */

/* ---------------------------------------------------- F2: swipe gallery */

.sl-gallery--swipe .sl-gallery-frame--swipe {
	background: transparent;
	padding: 0;
}

.sl-gallery-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin: 0;
}

.sl-gallery-track::-webkit-scrollbar {
	display: none;
}

.sl-gallery-track:focus-visible {
	outline: var(--fokusring) solid var(--fokus);
	outline-offset: 2px;
}

.sl-slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	margin: 0;
	height: 260px;
	overflow: hidden;
	background: var(--flutlicht);
}

.sl-slide .sl-picture {
	display: block;
	width: 100%;
	height: 100%;
}

body.sl .sl-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* F1: a small phone keeps the hero at 220 px. */
@media (max-width: 374px) {
	.sl-slide {
		height: 220px;
	}
}

/* F1: edge to edge on a phone, inside the grid from 768 px. */
@media (max-width: 767px) {
	.sl-gallery--swipe .sl-gallery-frame--swipe {
		margin-left: calc(-1 * var(--space-16));
		margin-right: calc(-1 * var(--space-16));
	}

	.sl-gallery--swipe .sl-slide {
		border-radius: 0;
	}
}

@media (min-width: 768px) {
	.sl-slide {
		height: 560px;
	}
}

/* ------------------------------------------------------- F7: TV badge */

.sl-hero-badge {
	position: absolute;
	left: var(--space-12);
	bottom: var(--space-12);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - var(--space-24));
	padding: 6px var(--space-12);
	background: var(--flutlicht);
	color: var(--auf-flutlicht);
	font-size: 13px;
	line-height: 18px;
	text-decoration: none;
	border-radius: var(--radius-pill);
}

.sl-hero-badge .sl-icon {
	flex: 0 0 16px;
}

.sl-hero-badge b {
	font-weight: 600;
}

/* --------------------------------------------------- F3 to F6: the copy */

.sl-eyebrow {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-gedaempft);
	margin: 0;
}

/* F4: 32 px, one line on a phone. */
@media (max-width: 767px) {
	.sl-buy-intro .sl-display {
		font-size: 32px;
		line-height: 1;
	}
}

/* F6: the line that replaces the unit price. */
.sl-loops-line {
	font-family: var(--font-text);
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-gedaempft);
}

/* ------------------------------------------------- F9/F10: size picker */

/* F9: 56 px tiles, not 78. */
.sl-size {
	min-height: 56px;
	height: 56px;
	padding: 6px var(--space-12);
}

.sl-size b {
	font-size: 22px;
	line-height: 24px;
}

/* F10: the size reassurance directly under the tiles. */
.sl-size-hint {
	font-size: 14px;
	line-height: 20px;
	color: var(--text-gedaempft);
	margin: 0;
}

/* --------------------------------------------- F8/T7: the decision lines */

.sl-buy-shipping,
.sl-delivery {
	font-size: 14px;
	line-height: 20px;
	color: var(--text-gedaempft);
	margin: 0;
}

.sl-delivery--christmas {
	color: var(--erfolg);
	font-weight: 600;
}

/* --------------------------------------------------- M1: the step photos */

/* On a phone every step is a row: number, a 4:3 photo at 160 px, then the copy.
   The photo fills its frame with object-fit cover, so no white area hangs
   under it. */
.sl-steps--photo li {
	grid-template-columns: 40px 160px 1fr;
	align-items: center;
}

.sl-step-photo {
	grid-column: 2;
	grid-row: 1;
	width: 160px;
	height: 120px;
	overflow: hidden;
	background: var(--papier);
}

.sl-step-photo .sl-picture {
	display: block;
	width: 100%;
	height: 100%;
}

body.sl .sl-step-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* M1: if a step ever has no photo, it is text only, no empty box. */
.sl-step--no-photo {
	grid-template-columns: 40px 1fr;
}

/* --------------------------------------------------- M2: the video tile */

.sl-mechanism-video {
	margin-top: var(--space-16);
}

.sl-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	background: var(--flutlicht);
	position: relative;
	cursor: pointer;
	padding: 0;
	overflow: hidden;
}

.sl-video .sl-picture {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

body.sl .sl-video img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* The play button keeps the global absolute centring; only the stacking order
   is raised so it sits over the poster. */
.sl-video-play {
	z-index: 1;
}

.sl-video-label {
	margin: var(--space-8) 0 0;
	font-weight: 600;
}

/* ------------------------------------------------ T6: parent questions */

.sl-questions {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin-top: var(--space-16);
}

/* ----------------------------------------------------- T2: proof cards */

.sl-proof-card {
	align-items: flex-start;
}

.sl-proof-photo {
	width: 120px;
	height: 84px;
	flex: 0 0 120px;
	margin: 0;
	overflow: hidden;
	background: var(--papier);
}

.sl-proof-photo .sl-picture {
	display: block;
	width: 100%;
	height: 100%;
}

body.sl .sl-proof-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------------------------------------------- T1: the founder figure */

.sl-founder-figure .sl-picture {
	display: block;
	width: 100%;
}

/* --------------------------------------------- F13: the sticky buy bar */

/* The bar is 44 px of control plus 8 px of padding on each side, close to the
   72 px the audit asked for, down from 114. The thumb leaves to make room for
   the size chips and the price on the button. */
.sl-buybar {
	padding: var(--space-8) 0;
}

.sl-buybar-inner {
	gap: var(--space-8);
	flex-wrap: nowrap;
}

.sl-buybar-thumb {
	display: none;
}

.sl-buybar-text {
	flex: 1 1 auto;
	min-width: 0;
}

.sl-buybar-price {
	font-size: 20px;
}

.sl-buybar-sizes {
	display: inline-flex;
	gap: 4px;
	flex: 0 0 auto;
}

.sl-buybar-size {
	min-width: 44px;
	height: 44px;
	padding: 0 6px;
	border: 2px solid var(--auf-flutlicht);
	background: transparent;
	color: var(--auf-flutlicht);
	font: inherit;
	font-weight: 600;
	border-radius: var(--radius-control);
	cursor: pointer;
}

.sl-buybar-size[aria-pressed='true'] {
	background: var(--auf-flutlicht);
	color: var(--flutlicht);
}

.sl-buybar [data-sl-buybar-add] {
	flex: 0 0 auto;
	font-size: 15px;
	padding-left: var(--space-12);
	padding-right: var(--space-12);
	white-space: nowrap;
}

.sl-buybar-note {
	margin: 0;
	padding: var(--space-4) var(--space-16) 0;
	text-align: center;
	font-size: 12px;
	line-height: 16px;
	color: var(--auf-flutlicht);
}

/* --------------------------------------------- F14: one selected state */

/* The size tile and the pack tile share one selected state token; the two
   groups stay different in shape (size is a compact tile, the pack is a full
   width row without the control radius). */
.sl-size[aria-pressed='true'],
.sl-pack:has(input:checked),
.sl-buy-row-size[aria-pressed='true'] {
	border: var(--fokusring) solid var(--ink);
	box-shadow: inset 0 -4px 0 var(--loop-gruen);
}

.sl-packs .sl-pack {
	border-radius: var(--radius-0);
}

/* ------------------------------------------------ F16: 44 px tap targets */

.sl-buy-shipping a,
.sl-shipping-note a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.sl-footer-links a,
.sl-footer-links button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ------------------------------------------- M4: the buy row after steps */

.sl-buy-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-12);
	margin-top: var(--space-24);
	padding: var(--space-16);
	background: var(--papier);
	border: var(--haarlinie) solid var(--linie);
}

.sl-buy-row-price {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sl-buy-row-sizes {
	display: inline-flex;
	gap: var(--space-8);
}

.sl-buy-row-size {
	min-width: 44px;
	height: 44px;
	padding: 0 var(--space-12);
	border: 2px solid var(--text-gedaempft);
	background: var(--papier);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	border-radius: var(--radius-control);
	cursor: pointer;
}

.sl-buy-row [data-sl-buybar-add] {
	margin-left: auto;
}

/* ------------------------------------------- M6: no dead gap after steps */

@media (max-width: 767px) {
	.sl-steps-grid {
		gap: var(--space-16);
	}

	#so-funktionierts.sl-section {
		padding-bottom: var(--space-32);
	}

	.sl-buy-row {
		margin-top: var(--space-16);
	}
}

/* ------------------------------------------------- T10: the gift block */

.sl-gift-col {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-16);
}

.sl-gift-photo {
	margin: 0;
}

.sl-gift-photo .sl-picture {
	display: block;
}

.sl-gift-photo img {
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	.sl-gift-col {
		grid-template-columns: 180px 1fr;
		gap: var(--space-24);
		align-items: start;
	}
}

/* ---------------------------------------------------- C9: the team band */

.sl-team-band {
	background: var(--flutlicht);
	color: var(--auf-flutlicht);
	padding: var(--space-24);
}

.sl-team-band .sl-h2 {
	color: var(--auf-flutlicht);
}

.sl-team-band .sl-btn--primary {
	background: var(--auf-flutlicht);
	border-color: var(--auf-flutlicht);
	color: var(--flutlicht);
}

.sl-team-band .sl-btn--secondary {
	background: transparent;
	border-color: var(--auf-flutlicht);
	color: var(--auf-flutlicht);
}

/* ----------------------------------------------- K1: the desktop buy card */

@media (min-width: 768px) {
	.sl-buy-col {
		background: var(--papier);
		padding: var(--space-32);
	}

	.sl-buy-intro .sl-display {
		font-size: 64px;
		line-height: 0.95;
	}
}

/* ----------------------------------------- K2: the gallery thumbnail row */

.sl-gallery-thumbs {
	display: none;
}

@media (min-width: 768px) {
	.sl-gallery-thumbs {
		display: flex;
		gap: var(--space-8);
		margin-top: var(--space-12);
	}

	.sl-gallery-thumb {
		display: block;
		width: 96px;
		height: 72px;
		padding: 0;
		border: 2px solid transparent;
		background: var(--flutlicht);
		cursor: pointer;
		overflow: hidden;
	}

	body.sl .sl-gallery-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.sl-gallery-thumb:focus-visible {
		outline: var(--fokusring) solid var(--fokus);
		outline-offset: 2px;
	}
}

/* ----------------------------------- K3: desktop steps and proof as rows */

@media (min-width: 768px) {
	.sl-steps--photo {
		flex-direction: row;
		gap: var(--space-24);
	}

	.sl-steps--photo li {
		grid-template-columns: 1fr;
		row-gap: var(--space-12);
		align-items: start;
	}

	.sl-steps--photo .sl-step-photo {
		grid-column: auto;
		grid-row: auto;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.sl-proof {
		flex-direction: row;
		gap: var(--space-24);
	}

	.sl-proof li {
		flex: 1 1 0;
	}
}

/* ------------------------------------------------- K5: section rhythm */

.sl-section {
	padding: var(--space-48) 0;
}

@media (min-width: 768px) {
	.sl-section {
		padding: var(--space-96) 0;
	}
}

/* --------------------------------------------- K4: the header buy button */

.sl-header-buy {
	display: none;
	align-items: center;
	gap: var(--space-8);
	margin-left: auto;
	padding: var(--space-8) var(--space-12);
	border: 2px solid var(--loop-blau-700);
	background: var(--papier);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	border-radius: var(--radius-control);
	cursor: pointer;
}

@media (min-width: 768px) {
	.sl-header-buy:not([hidden]) {
		display: inline-flex;
	}
}

/* K4 follow-up: the compact button is only worth its place while the header is
   on screen, so from 768 px up (where the sticky bar is display:none and the
   header button is the only buy control that follows the visitor) the header
   follows the scroll with the theme's sticky pattern, the one the checkout
   summary already uses. home.css is enqueued on the front page only, so no
   other page changes. The top offset is the staging bar height, as with the
   drawer; the z-index sits above the content and below the scrim (90). */
@media (min-width: 768px) {
	.sl-header {
		position: sticky;
		top: var(--sl-staging-bar, 0px);
		z-index: 50;
	}

	/* The header CTA scrolls the buy box to the top of the viewport, and the
	   nav links to #so-funktionierts; both targets would stop under the header
	   they now share the viewport with. 72 px is the header height, the 16 px
	   the air below its hairline, the staging bar the same offset the header
	   sticks at. */
	.sl-buy-col,
	#so-funktionierts {
		scroll-margin-top: calc(72px + var(--space-16) + var(--sl-staging-bar, 0px));
	}
}

.sl-header-buy-price {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 20px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

/* C8: the regular price beside the club price, plain text, no strike-through
   (audit section 11 rules strike-through prices out). */
.sl-price--statt {
	font-family: var(--font-text);
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-gedaempft);
}

/* F12 follow-up: the buy button belongs on the first screen.
   On a phone the stack above the button is measured down: a flatter header, the
   hero as a strip, one 4 px rhythm inside the intro and an 8 px rhythm in the
   buy column. With an active club code the hero gives up exactly the height of
   the club bar, so the bar does not push the button down (item 1). */
@media (max-width: 767px) {
	.sl-header-inner {
		min-height: 56px;
		padding-top: var(--space-4);
		padding-bottom: var(--space-4);
	}

	.sl-buy {
		padding-top: 0;
	}

	.sl-buy-grid {
		gap: var(--space-4);
	}

	.sl-buy-col {
		/* The chalk line (4 px, 24 px corner) is drawn at the top of the column.
		   Without top padding the uppercase eyebrow runs into the curve; 24 px
		   clears the corner and still keeps the buy button on the first screen. */
		padding-top: var(--space-24);
		gap: var(--space-8);
	}

	.sl-buy-intro {
		gap: var(--space-4);
	}

	.sl-buy-intro .sl-eyebrow,
	.sl-buy-intro .sl-display,
	.sl-buy-intro .sl-lead {
		margin: 0;
	}

	.sl-buy-col .sl-size-hint {
		margin: 0;
	}

	/* The club bar is 48 px tall. The hero steps back by the same 48 px on the
	   first screen, so the club message costs the button no height at all. */
	body:has(.sl-clubbar) .sl-slide {
		height: 212px;
	}
}

@media (max-width: 374px) {
	/* The 360x740 target is 545 px: one tighter gap and a shorter lead line on
	   the smallest phones buy the last 20 px. */
	.sl-buy-col {
		gap: var(--space-4);
	}

	.sl-buy-intro .sl-lead {
		line-height: 22px;
	}

	body:has(.sl-clubbar) .sl-slide {
		height: 172px;
	}
}

/* ------------------------------------- O5/O6: the mixed tile and the DE note */

/* O6: the shipping argument sits inside the bundle tile, under the saving chip. */
.sl-pack-shipping {
	display: block;
	margin-top: var(--space-4);
	color: var(--erfolg);
	font-weight: 600;
}

/* O5: with the mixed pair chosen the size choice is not asked for. The tiles
   stay in the DOM and stay keyboard reachable, they just read as set aside. */
.sl-sizes--mixed {
	opacity: 0.45;
}

/* ---------------------------------------------------- reviews slot */

.sl-reviews-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	margin: var(--space-16) 0 0;
	padding: 0;
}

.sl-reviews-average {
	font-size: 16px;
	line-height: 24px;
	margin: var(--space-8) 0 0;
}

.sl-review blockquote {
	margin: 0;
	padding-left: var(--space-16);
	border-left: var(--kreidelinie) solid var(--loop-gruen);
}

.sl-review blockquote p {
	margin: 0;
}

.sl-review-name {
	margin: var(--space-4) 0 0 var(--space-16);
}

@media (min-width: 768px) {
	.sl-reviews-list {
		flex-direction: row;
	}

	.sl-review {
		flex: 1 1 0;
	}
}
