/* BIG Produkte: Katalog, Produktansicht und Verkaufsstellen */

.bigp {
	--bigp-ink: #161514;
	--bigp-papier: #f4f2ef;
	--bigp-grau: #686560;
	--bigp-linie: #d8d5d0;
	--bigp-rand: #d2cec7;
	--bigp-karte: #e6e2dc;
	--bigp-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	color: var(--bigp-ink);
	text-align: left;
}

.bigp *,
.bigp *::before,
.bigp *::after {
	box-sizing: border-box;
}

.bigp [hidden] {
	display: none !important;
}

.bigp ul,
.bigp ul > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bigp p {
	margin: 0;
	padding: 0;
}

.bigp a,
.bigp a:hover {
	color: inherit;
	text-decoration: none;
}

.bigp img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	/* Salient gives every image inside a column a bottom margin. */
	margin: 0 !important;
}

.bigp button {
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.bigp a:focus-visible,
.bigp button:focus-visible {
	outline: 2px solid var(--bigp-ink);
	outline-offset: 2px;
}

.bigp .bigp-extern::after {
	content: "\2197";
	margin-left: 2px;
	font-weight: 400;
}

/* Manrope sets "Pf" far apart in its bold weights ("P fahlewer"); without kerning the pair is right. */
.bigp .bigp-filter button,
.bigp h3.bigp-karte-name,
.bigp .bigp-stelle-name,
.bigp .bigp-chips {
	font-kerning: none;
}

.bigp .bigp-wortmarke {
	display: block;
	padding: 0 6px;
	font-family: var(--bigp-serif);
	font-size: 17px;
	line-height: 1.1;
	font-weight: 400;
	text-align: center;
	text-wrap: balance;
	overflow-wrap: anywhere;
	color: #35322e;
}

/* Kategorien */

/* A link to a product scrolls the catalog to the top; the fixed header of the theme must not cover it. */
.bigp.bigp-katalog {
	scroll-margin-top: 130px;
}

.bigp .bigp-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 52px;
}

.bigp .bigp-filter button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--bigp-rand);
	border-radius: 200px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color .15s, background-color .15s, color .15s;
}

.bigp .bigp-anzahl {
	font-size: 12px;
	color: var(--bigp-grau);
}

/* Hover styles only where a pointer can hover: on touch screens they would stick after a tap. */
@media (hover: hover) {
	.bigp .bigp-filter button:hover {
		border-color: var(--bigp-ink);
	}
}

.bigp .bigp-filter button[aria-pressed="true"] {
	border-color: var(--bigp-ink);
	background: var(--bigp-ink);
	color: #fff;
}

.bigp .bigp-filter button[aria-pressed="true"] .bigp-anzahl {
	color: #bdb8b1;
}

/* Produkte */

.bigp .bigp-gruppe + .bigp-gruppe {
	margin-top: 60px;
}

.bigp h2.bigp-gruppe-name {
	margin: 0 0 22px;
	padding: 0;
	font-family: var(--bigp-serif);
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--bigp-ink);
}

.bigp .bigp-raster {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.bigp .bigp-karte {
	overflow: hidden;
	border: 1px solid var(--bigp-karte);
	border-radius: 14px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.bigp .bigp-karte > a {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.bigp .bigp-karte-bild {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ebe8e3;
}

.bigp .bigp-karte-bild img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s ease;
}

@media (hover: hover) {
	.bigp .bigp-karte:hover {
		border-color: #7b766e;
		box-shadow: 0 4px 20px #16151410;
	}

	.bigp .bigp-karte:hover .bigp-karte-bild img {
		transform: scale(1.03);
	}
}

.bigp .bigp-karte-bild .bigp-hinweis {
	position: absolute;
	top: 12px;
	left: 12px;
}

.bigp .bigp-foto-folgt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .17em;
	text-transform: uppercase;
	color: #a29d97;
}

.bigp .bigp-karte-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 18px 18px 20px;
}

.bigp h3.bigp-karte-name {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	overflow-wrap: break-word;
	/* German hyphenation for long words only: "Pfahlewer" stays whole, "batteriebetrieben" may break. */
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	color: var(--bigp-ink);
}

.bigp .bigp-preis {
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
}

.bigp .bigp-karte-stellen {
	margin-top: auto;
	padding-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--bigp-grau);
}

.bigp .bigp-hinweis {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 200px;
	background: var(--bigp-ink);
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
}

/* Produktansicht: ohne Skript als Liste unter der Übersicht, sonst im Dialog */

.bigp .bigp-details {
	display: grid;
	gap: 28px;
	margin-top: 64px;
}

.bigp .bigp-produkt {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--bigp-linie);
	border-radius: 15px;
	background: var(--bigp-papier);
	scroll-margin-top: 130px;
}

.bigp .bigp-galerie {
	position: relative;
	min-width: 0;
	background: #fff;
}

.bigp .bigp-galerie-spur {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bigp .bigp-galerie-spur::-webkit-scrollbar {
	display: none;
}

.bigp .bigp-galerie-spur > li {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 5;
	scroll-snap-align: start;
}

.bigp .bigp-galerie-spur img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bigp .bigp-galerie > .bigp-foto-folgt {
	aspect-ratio: 4 / 5;
	background: #ebe8e3;
}

.bigp .bigp-galerie-steuerung {
	position: absolute;
	bottom: 16px;
	left: 50%;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border-radius: 200px;
	background: #ffffffeb;
	box-shadow: 0 2px 14px #16151424;
	transform: translateX(-50%);
}

.bigp .bigp-galerie-steuerung button {
	position: relative;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 200px;
	background: transparent;
}

.bigp .bigp-galerie-steuerung button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px;
	transform: translate(-30%, -50%) rotate(45deg);
}

.bigp .bigp-galerie-steuerung .bigp-galerie-vor::before {
	transform: translate(-70%, -50%) rotate(-135deg);
}

.bigp .bigp-galerie-steuerung button:disabled {
	opacity: .3;
	cursor: default;
}

.bigp .bigp-galerie-zaehler {
	min-width: 42px;
	font-size: 12px;
	line-height: 1;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.bigp .bigp-produkt-inhalt {
	min-width: 0;
	padding: 46px 44px 44px;
}

.bigp .bigp-eyebrow {
	margin: 0 0 12px;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .17em;
	text-transform: uppercase;
	color: var(--bigp-grau);
}

/* The right padding keeps long names clear of the close button. */
.bigp h2.bigp-produkt-name {
	margin: 0 0 18px;
	padding: 0 40px 0 0;
	font-family: var(--bigp-serif);
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.05;
	font-weight: 400;
	letter-spacing: -.01em;
	text-transform: none;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	color: var(--bigp-ink);
}

.bigp .bigp-produkt-preis {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 24px;
}

.bigp .bigp-produkt-preis .bigp-preis {
	font-size: 21px;
}

.bigp .bigp-produkt-text {
	font-size: 15px;
	line-height: 1.65;
}

.bigp .bigp-produkt-text p {
	margin: 0 0 14px;
}

.bigp .bigp-produkt-text > :last-child {
	margin-bottom: 0;
}

.bigp .bigp-produkt-text ul > li {
	margin-left: 1.2em;
	list-style: disc;
}

.bigp .bigp-produkt-text a,
.bigp .bigp-bezug a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.bigp .bigp-stellen {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--bigp-linie);
}

.bigp h3.bigp-abschnitt {
	margin: 0 0 14px;
	padding: 0;
	font-family: inherit;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bigp-grau);
}

.bigp .bigp-bezug {
	font-size: 15px;
	line-height: 1.6;
	font-weight: 500;
}

/* Verkaufsstellen, in der Produktansicht und in der Übersicht */

.bigp .bigp-stellen-liste {
	display: grid;
	gap: 8px;
}

.bigp .bigp-stelle,
.bigp .bigp-stellenkarte {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px 12px 12px;
	border: 1px solid var(--bigp-karte);
	border-radius: 12px;
	background: #fff;
}

.bigp .bigp-stelle-logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 96px;
	aspect-ratio: 8 / 5;
}

.bigp .bigp-stelle-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
}

.bigp .bigp-stelle-name,
.bigp h3.bigp-stelle-name {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	overflow-wrap: anywhere;
	color: var(--bigp-ink);
}

.bigp .bigp-stelle-adresse {
	font-size: 13px;
	line-height: 1.4;
	color: var(--bigp-grau);
}

.bigp .bigp-stelle-links {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 600;
}

.bigp .bigp-stelle-links a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bigp .bigp-stellen-raster {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.bigp .bigp-stellenkarte {
	align-items: flex-start;
	height: 100%;
	padding: 16px 18px 18px 14px;
}

.bigp .bigp-stellenkarte .bigp-stelle-logo {
	width: 104px;
}

.bigp .bigp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.bigp .bigp-chips a,
.bigp .bigp-chips span {
	display: inline-block;
	padding: 5px 11px;
	border: 1px solid var(--bigp-linie);
	border-radius: 200px;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
	transition: border-color .15s, background-color .15s, color .15s;
}

@media (hover: hover) {
	.bigp .bigp-chips a:hover {
		border-color: var(--bigp-ink);
		background: var(--bigp-ink);
		color: #fff;
	}
}

/* Dialog */

/* While a product is open, the page behind stays put. The room of the scrollbar is kept, so nothing
   jumps, and takes the colour of the dimmed page. */
html.bigp-dialog-offen {
	overflow: hidden;
	scrollbar-gutter: stable;
	background-color: #605f5d;
}

dialog.bigp-dialog {
	position: fixed;
	inset: 0;
	width: min(1080px, calc(100% - 48px));
	max-width: none;
	height: min(740px, calc(100dvh - 48px));
	max-height: none;
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 15px;
	background: var(--bigp-papier);
	box-shadow: 0 20px 80px #0004;
	color: var(--bigp-ink);
}

dialog.bigp-dialog[open] {
	display: flex;
	flex-direction: column;
	animation: bigp-dialog-ein .22s ease;
}

dialog.bigp-dialog::backdrop {
	background: #161514aa;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

@keyframes bigp-dialog-ein {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.bigp .bigp-dialog-rahmen {
	flex: 1;
	min-height: 0;
}

/* Side by side: the photos fill the left half, the text scrolls on its own. */
.bigp-dialog .bigp-produkt {
	grid-template-rows: minmax(0, 1fr);
	height: 100%;
	border: 0;
	border-radius: 0;
}

.bigp-dialog .bigp-galerie-spur > li,
.bigp-dialog .bigp-galerie > .bigp-foto-folgt {
	height: 100%;
	aspect-ratio: auto;
}

.bigp-dialog .bigp-produkt-inhalt {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.bigp .bigp-dialog-zu {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--bigp-linie);
	border-radius: 200px;
	background: #fff linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat;
	transform: rotate(45deg);
}

.bigp .bigp-dialog-zu::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.5px;
	height: 16px;
	margin: -8px 0 0 -.75px;
	background: currentColor;
}

@media (max-width: 1000px) {
	.bigp .bigp-raster {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bigp .bigp-stellen-raster {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* One column: the photos above, the text below, scrolling together. */
@media (max-width: 900px) {
	.bigp .bigp-produkt {
		grid-template-columns: minmax(0, 1fr);
	}

	.bigp .bigp-produkt-inhalt {
		padding: 30px 28px 34px;
	}

	.bigp h2.bigp-produkt-name {
		padding-right: 0;
	}

	dialog.bigp-dialog {
		width: min(680px, calc(100% - 32px));
		height: calc(100dvh - 32px);
	}

	.bigp-dialog .bigp-dialog-rahmen {
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.bigp-dialog .bigp-produkt {
		grid-template-rows: none;
		height: auto;
	}

	.bigp-dialog .bigp-galerie-spur > li,
	.bigp-dialog .bigp-galerie > .bigp-foto-folgt {
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.bigp-dialog .bigp-produkt-inhalt {
		overflow: visible;
	}
}

@media (max-width: 690px) {
	/* One row to swipe through. */
	.bigp .bigp-filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-bottom: 36px;
		padding: 2px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.bigp .bigp-filter::-webkit-scrollbar {
		display: none;
	}

	.bigp .bigp-filter button {
		flex: none;
		min-height: 42px;
		padding: 0 16px;
	}

	.bigp .bigp-gruppe + .bigp-gruppe {
		margin-top: 44px;
	}

	.bigp h2.bigp-gruppe-name {
		margin-bottom: 16px;
	}

	.bigp .bigp-raster {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.bigp .bigp-karte-text {
		padding: 12px 12px 14px;
	}

	.bigp h3.bigp-karte-name {
		font-size: 15px;
	}

	.bigp .bigp-preis {
		font-size: 14px;
	}

	.bigp .bigp-karte-bild .bigp-hinweis {
		top: 8px;
		left: 8px;
	}

	.bigp .bigp-details {
		margin-top: 44px;
	}

	.bigp .bigp-produkt-inhalt {
		padding: 24px 20px 32px;
	}

	.bigp .bigp-stellen-raster {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.bigp .bigp-stelle-logo,
	.bigp .bigp-stellenkarte .bigp-stelle-logo {
		width: 80px;
	}

	dialog.bigp-dialog {
		width: 100%;
		height: 100%;
		max-height: 100dvh;
		border-radius: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bigp *,
	dialog.bigp-dialog[open] {
		animation: none !important;
		transition: none !important;
	}
}

.bigp .bigp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Tage einer Verkaufsstelle, z. B. der BIG-Hütte während der Weihnachtsaktion */
.bigp .bigp-stelle-zeiten {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #8a5d12;
}
