/**
 * Shop – Erweiterung für phpBB 3.3
 * Autorin: Maggan22 · Lizenz: GPL-2.0
 *
 * Farben lassen sich im Style überschreiben, z. B.:
 * :root { --shop-akzent: #2f7d4f; }
 */
:root {
	--shop-akzent: #3b6fb6;
	--shop-angebot: #c0392b;
	--shop-highlight: #d4a017;
	--shop-ok: #2e8540;
	--shop-flaeche: rgba(127, 127, 127, 0.08);
	--shop-rand: rgba(127, 127, 127, 0.25);
	--shop-markiert-rand: #d4a017;
}

/* Kopf und Reiter */
.shop-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.shop-titel {
	margin: 0;
}

.shop-stand {
	padding: 4px 12px;
	border: 1px solid var(--shop-rand);
	border-radius: 999px;
	font-weight: bold;
	text-decoration: none;
	white-space: nowrap;
}

.shop-reiter ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.shop-reiter a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--shop-rand);
	border-radius: 999px;
	text-decoration: none;
}

.shop-reiter li.aktiv a {
	background: var(--shop-akzent);
	border-color: var(--shop-akzent);
	color: #fff;
}

.shop-reiter .shop-reiter-rechts {
	margin-left: auto;
}

.shop-abschnitt {
	margin-bottom: 18px;
}

.shop-abschnitt h3 {
	margin: 0 0 8px;
	border: 0;
	text-transform: none;
	font-size: 1.15em;
}

.shop-einleitung {
	margin: 0 0 10px;
}

.shop-hinweis {
	font-size: 0.9em;
	opacity: 0.8;
}

/* Raster und Karten */
.shop-raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
}

.shop-raster-gross {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.shop-karte {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--shop-flaeche);
	border: 1px solid var(--shop-rand);
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.shop-karte:hover,
.shop-karte:focus {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	text-decoration: none;
}

.shop-karte-aus {
	opacity: 0.6;
}

.shop-karte-bild,
.shop-detail-bild {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: rgba(127, 127, 127, 0.1);
}

.shop-karte-bild img,
.shop-detail-bild img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}

.shop-karte-bild .icon {
	font-size: 42px;
	opacity: 0.55;
}

.shop-karte-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 8px 10px 10px;
}

.shop-karte-art {
	font-size: 0.85em;
	opacity: 0.75;
}

.shop-karte-titel {
	font-size: 1.05em;
	line-height: 1.3;
}

.shop-karte-preis del,
.shop-detail-preis del {
	opacity: 0.6;
}

.shop-karte-preis b,
.shop-detail-preis b {
	color: var(--shop-akzent);
}

.shop-karte-vorrat {
	color: var(--shop-angebot);
	font-size: 0.85em;
}

.shop-ausverkauft {
	color: var(--shop-angebot);
	font-weight: bold;
}

.shop-schild {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	color: #fff;
	font-size: 0.8em;
	font-weight: bold;
}

.shop-schild-angebot { background: var(--shop-angebot); }
.shop-schild-highlight { background: var(--shop-highlight); }

.shop-schild-besitz {
	left: auto;
	right: 6px;
	background: var(--shop-ok);
}

/* Kategorien */
.shop-kategorien {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
}

.shop-kategorie {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--shop-flaeche);
	border: 1px solid var(--shop-rand);
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.shop-kategorie > .icon {
	font-size: 22px;
	color: var(--shop-akzent);
}

.shop-kategorie-text {
	font-size: 0.9em;
	opacity: 0.8;
}

.shop-kategorie-anzahl {
	margin-left: auto;
	font-size: 0.85em;
	white-space: nowrap;
	opacity: 0.75;
}

/* Artikelseite */
.shop-detail {
	display: grid;
	grid-template-columns: minmax(200px, 340px) 1fr;
	gap: 18px;
	padding: 14px;
	background: var(--shop-flaeche);
	border: 1px solid var(--shop-rand);
	border-radius: 8px;
}

.shop-detail-bild {
	border-radius: 8px;
}

.shop-detail-bild .icon {
	font-size: 90px;
	opacity: 0.5;
}

.shop-detail-titel {
	margin: 2px 0 6px;
	font-size: 1.6em;
}

.shop-detail-preis {
	font-size: 1.3em;
	margin: 0 0 10px;
}

.shop-detail-preis .shop-hinweis {
	display: block;
	font-size: 0.7em;
}

.shop-detail-beschreibung {
	margin-bottom: 10px;
	line-height: 1.5;
}

.shop-fakten {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.shop-fakten li {
	padding: 3px 0;
}

.shop-fakt-besitz {
	color: var(--shop-ok);
	font-weight: bold;
}

.shop-kaufen .shop-knopf {
	font-size: 1.15em;
	padding: 6px 18px;
}

.shop-geschenk {
	margin-top: 12px;
	padding: 8px 12px;
	border: 1px dashed var(--shop-rand);
	border-radius: 8px;
}

.shop-geschenk summary {
	cursor: pointer;
	font-weight: bold;
}

.shop-geschenk dl {
	margin: 8px 0;
}

.shop-geschenk .inputbox {
	width: 100%;
	max-width: 420px;
}

.shop-frage h3 {
	margin-top: 0;
}

.shop-zitat {
	font-style: italic;
}

/* Inventar */
.shop-inv-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-inv-liste li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	margin-bottom: 6px;
	background: var(--shop-flaeche);
	border: 1px solid var(--shop-rand);
	border-radius: 8px;
}

.shop-inv-bild {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
}

.shop-inv-bild img {
	max-width: 48px;
	max-height: 48px;
	object-fit: contain;
}

.shop-inv-bild .icon {
	font-size: 26px;
	color: var(--shop-akzent);
}

.shop-inv-text {
	flex: 1 1 auto;
}

.shop-inv-art {
	font-size: 0.85em;
	opacity: 0.7;
}

.shop-inv-von {
	display: inline-block;
	font-size: 0.9em;
	opacity: 0.85;
}

.shop-inv-knopf {
	flex: 0 0 auto;
	white-space: nowrap;
}

.shop-abzeichen-raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}

.shop-abzeichen-wahl {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: var(--shop-flaeche);
	border: 1px solid var(--shop-rand);
	border-radius: 8px;
	cursor: pointer;
}

.shop-einloesen-kopf {
	display: flex;
	align-items: center;
	gap: 12px;
}

.shop-themenwahl {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-themenwahl li {
	padding: 4px 0;
}

/* Im Forum: Titel, Abzeichen, markierte Themen */
.shop-benutzertitel {
	font-style: italic;
	font-size: 0.95em;
}

.shop-abzeichen-leiste img {
	width: 22px;
	height: 22px;
	margin: 2px 3px 0 0;
	object-fit: contain;
	vertical-align: middle;
}

.shop-abzeichen-profil img {
	width: 32px;
	height: 32px;
}

li.row:has(> .shop-markiert) {
	position: relative;
	z-index: 0;
}

/* Farbige Fläche hinter dem Thema; die Farbe kommt aus dem Artikel */
.shop-markiert {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--shop-markiert-rand);
	border-left: 4px solid rgba(0, 0, 0, 0.25);
	opacity: 0.16;
	pointer-events: none;
}

.shop-markiert-stern {
	float: right;
	margin: 6px 8px 0 0;
	color: var(--shop-markiert-rand);
}

@media (max-width: 700px) {
	.shop-detail {
		grid-template-columns: 1fr;
	}

	.shop-reiter .shop-reiter-rechts {
		margin-left: 0;
	}

	.shop-inv-liste li {
		flex-wrap: wrap;
	}

	.shop-raster {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}
