@charset "utf-8";

/* ==========================================================================
   Shop — mobile first
   ========================================================================== */

#shop_body {
	left: 0;
	right: 0;
	width: 100vw;
	box-sizing: border-box;
	overflow-y: auto;
	overflow-x: hidden;
}

.shop {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1rem;
	max-width: 900px;
	margin: 0 auto;
	box-sizing: border-box;
}

.shop-select-size-text,
#quantity-text,
.quantity-btn,
#quantity-val {
	color: var(--akzentfarbe1);
}

.shop p {
	font-size: 1.6rem;

}

.shop-text {
	order: -1;
}

/* Overlay-Button-Backdrop für Alerts */
#close {
	display: none;
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	background-color: transparent;
	border: none;
	z-index: 5;
	cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Vorschau
   -------------------------------------------------------------------------- */

.shop-vorschau {
	text-align: center;
}

#shop-result {
	font-size: 2rem;
	font-weight: bold;
	margin: 0 0 0.5rem;
}

.shop-img-wrap {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 0.5rem;
	width: 100%;
}

.shop-img {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center 30%;
	overflow: visible;
}

#shop-img-back {
	object-position: center 40%;
	transform: scale(1.18);
}

.kleidungbeschreibung {
	font-size: 0.95rem;
	color: #999;
	text-align: center;
	margin: 0.5rem 0 0;
}

/* --------------------------------------------------------------------------
   Auswahl (Artikel, Logo, Farbe, Größe)
   -------------------------------------------------------------------------- */

.shop-select {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.shop-select > p {
	font-size: 1.65rem;
	font-weight: 500;
	text-align: center;
	margin: 0;
}

/* Artikel-Reihe (k0–k3) */
#shop-select-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

#shop-select-item > div {
	cursor: pointer;
	text-align: center;
}

.img-select-img {
	display: block;
	width: 12rem;
	height: 12rem;
	border-radius: 50%;
	border: 3px solid #dadada;
	background-color: white;
	transition: border-color 0.15s ease;
}

.img-select-text {
	font-weight: bold;
	font-size: 1.45rem;
	margin: 0.35rem 0 0;
}

/* Pill-Optionen (Logo + Größe) */
#shop-select-logo,
#shop-select-size {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

.shop-select-size-text {
	display: inline-block;
	min-width: 5rem;
	padding: 0.9rem 1.4rem;
	margin: 0;
	border: 5px solid #dadada;
	border-radius: 2rem;
	background: var(--akzentfarbe3);
	text-align: center;
	font-weight: 500;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

#shop-select-logo .shop-select-size-text {
	min-width: 7.5rem;
}

/* Farbauswahl */
#shop-select-color {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.9rem;
}

.img-color {
	display: inline-block;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	border: 2px solid #dadada;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

/* Farbpaletten — Hintergrundfarben */
#c0 { background: #ffffff; border-color: #bbb; }
#c1 { background: #dfdfdf; }
#c2 { background: #b8b8b8; }
#c3 { background: #53565a; }
#c4 { background: #3a3a3a; }
#c5 { background: #000000; }
#c6 { background: #eabedb; }
#c7 { background: #d0006f; }
#c8 { background: #d50032; }
#c9 { background: #fe5000; }
#ca { background: #faaf3f; }
#cb { background: #f8e08e; }
#cc { background: #ffe44f; }
#cd { background: #63d05a; }
#ce { background: #009a44; }
#cf { background: #215732; }
#cg { background: #5f8289; }
#ch { background: #86c8bc; }
#ci { background: #abcae9; }
#cj { background: #00cdf2; }
#ck { background: #3f6e68; }
#cl { background: #0033a0; }
#cm { background: #1f2a44; }
#cn { background: #765ba7; }
#co { background: #c6b0bc; }
#cp { background: #6c1d45; }
#cq { background: #382f2d; }
#cr { background: #3e4827; }
#cs { background: #fffad9; border-color: #e0d8a8; }
#ct { background: #d2c7c4; }

/* --------------------------------------------------------------------------
   Menge + Warenkorb-Button
   -------------------------------------------------------------------------- */

#quantity {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	max-width: 20rem;
	margin: 0.5rem auto 0;
	padding: 0.5rem 1rem;
	background-color: #dadada;
	border-radius: 2rem;
}

#quantity-text {
	margin: 0;
	font-weight: bold;
	font-size: 1.5rem;
	color: var(--akzentfarbe1);
}

.quantity-btn {
	width: 3.5rem;
	height: 3.5rem;
	min-width: 3.5rem;
	border-radius: 50%;
	border: none;
	background: #fff;
	font-size: 1.85rem;
	font-weight: bold;
	color: var(--akzentfarbe1);
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.quantity-btn:active {
	background: #eee;
}

#quantity-val {
	width: 4rem;
	height: 3.5rem;
	text-align: center;
	font-size: 1.65rem;
	font-weight: bold;
	border: 2px solid #bbb;
	border-radius: 1rem;
	background: #fff;
	color: var(--akzentfarbe1);
	padding: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}

#quantity-val::-webkit-outer-spin-button,
#quantity-val::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

#to-basket {
	display: block;
	max-width: 22rem;
	margin: 0 auto;
	padding: 1.3rem 2rem;
	border-radius: 2rem;
	text-align: center;
	font-size: 2.5rem;
	font-weight: bold;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Info-Bereiche
   -------------------------------------------------------------------------- */

.shop-abholung,
#shop-bezahlung {
	padding: 0 0.25rem;
}

.shop-abholung-inner {
	margin: 0.5rem 0;
	padding: 0;
}

.shop-text {
	padding: 0 0.25rem;
}

.center {
	text-align: center;
}

/* Alte Utility-Klasse bleibt für Kompatibilität sichtbar */
.scroll {
	overflow: visible;
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

#to-basket-alert {
	position: fixed;
	top: 10vh;
	left: 50%;
	transform: translateX(-50%);
	width: min(90vw, 32rem);
	padding: 1.5rem;
	border-radius: 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"Text Text"
		"Box1 Box2";
	gap: 0.75rem;
	background-color: var(--akzentfarbe4);
	color: var(--akzentfarbe3);
	text-align: center;
	z-index: 10;
	opacity: 0.95;
}

#to-basket-alert #Text {
	grid-area: Text;
	font-size: 1.2rem;
}

#to-basket-alert .box {
	display: block;
	padding: 1rem;
	background-color: var(--akzentfarbe3);
	color: var(--akzentfarbe1);
	font-weight: bold;
	border-radius: 1rem;
	font-size: 1.1rem;
	cursor: pointer;
}

#to-basket-alert #box1 { grid-area: Box1; }
#to-basket-alert #box2 { grid-area: Box2; }

#select-quantity-alert {
	position: fixed;
	top: 10vh;
	left: 50%;
	transform: translateX(-50%);
	width: min(90vw, 22rem);
	max-height: 80vh;
	border-radius: 1.5rem;
	z-index: 10;
	cursor: pointer;
	overflow: hidden;
}

#select-quantity-alert table {
	display: block;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	border-collapse: collapse;
	border-radius: 1.5rem;
	border: 2px solid #999;
	background-color: #e9e9e9;
	color: #000;
	font-size: 1.25rem;
	text-align: center;
}

#select-quantity-alert td,
#select-quantity-alert th {
	display: block;
	width: 100%;
	padding: 1rem 0;
	border-top: 1px solid #999;
}

#select-quantity-alert th {
	border-top: 0;
}

#td-10 {
	border-bottom: 0;
}

/* ==========================================================================
   Tablet / Desktop
   ========================================================================== */

@media (min-width: 1024px) {
	.shop {
		max-width: 1400px;
		padding: 1.5rem 2rem;
		display: grid;
		gap: 1.5rem 2.5rem;
		grid-template-columns: 2fr 1fr;
		grid-template-areas:
			"shoptext shoptext"
			"vorschau select"
			"abholung bezahlung"
			"footer footer"
			"mobileblocker mobileblocker";
	}

	.shop-vorschau {
		grid-area: vorschau;
	}

	.shop-vorschau-inner {
		position: sticky;
		top: 1rem;
	}

	#shop-select {
		grid-area: select;
	}

	.shop-text {
		grid-area: shoptext;
		order: 0;
	}

	.shop-abholung {
		grid-area: abholung;
	}

	#shop-bezahlung {
		grid-area: bezahlung;
	}

	.footergrid {
		grid-area: footer;
	}

	.mobileblocker {
		grid-area: mobileblocker;
	}

	.shop-img-wrap {
		max-width: none;
		margin: 0 auto;
	}

	.shop-img {
		max-width: 50%;
	}

	.img-select-img {
		width: 8rem;
		height: 8rem;
	}

	.img-color {
		width: 2.75rem;
		height: 2.75rem;
	}

	.shop p {
		font-size: 1.2rem;
	}

	.shop-select > p {
		font-size: 1.2rem;
	}

	.img-select-text {
		font-size: 1.1rem;
	}

	.shop-select-size-text {
		min-width: 3.25rem;
		padding: 0.3rem 0.6rem;
		font-size: 1rem;
	}

	#shop-select-logo .shop-select-size-text {
		min-width: 5rem;
	}

	#quantity-text {
		font-size: 1.1rem;
	}

	#quantity-val {
		font-size: 1.25rem;
	}

	#to-basket {
		padding: 0.9rem 1.5rem;
		font-size: 2rem;
	}
}

@media (min-width: 1400px) {
	.shop {
		max-width: 1700px;
	}
}

@media (min-width: 1800px) {
	.shop {
		max-width: 2000px;
	}
}
