/* =============================================================
   Partnershops – Ergänzung zum Katalog-Stylesheet
   Namensraum: .shop-*   (die .cd-* Bausteine kommen aus candoc.css)
   ============================================================= */

.shop-wrap {
	--shop-accent: var(--cd-green);
	--shop-accent-soft: var(--cd-green-soft);
}

/* Jeder Shop bekommt einen eigenen Akzent, damit auf einen Blick erkennbar
   bleibt, von welchem Anbieter ein Angebot stammt. */
.shop-wrap--dransay {
	--shop-accent: #1d4ed8;
	--shop-accent-soft: #e8edfc;
}
.shop-wrap--bloomwell {
	--shop-accent: #0f766e;
	--shop-accent-soft: #e2f1ef;
}

.shop-wrap .cd-eyebrow { color: var(--shop-accent); }

/* Anbieterkennung auf der Karte */
.shop-card { position: relative; }
.shop-card::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 4px;
	height: 56px;
	border-radius: 0 4px 4px 0;
	background: var(--shop-accent);
	opacity: .85;
}

/* -------------------------------------------------------------
   Detailseite
   ------------------------------------------------------------- */
.shop-single { margin: 8px 0 48px; }

.shop-single__top {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 48px);
	align-items: start;
	margin-bottom: 40px;
}

.shop-single__media {
	background: var(--cd-mint-2);
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius-lg);
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.shop-single__media img {
	max-width: 100%;
	height: auto;
	border-radius: var(--cd-radius);
}
.shop-single__media .cd-card__img--placeholder {
	color: var(--shop-accent);
	opacity: .5;
	padding: 48px;
}

.shop-single__title {
	margin: 0 0 16px;
	font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem);
	line-height: 1.2;
	color: var(--cd-navy);
}

.shop-single__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.shop-single__price {
	background: var(--cd-white);
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius);
	box-shadow: var(--cd-shadow-sm);
	padding: 18px 20px;
	margin-bottom: 18px;
}
.shop-single__price .cd-price { margin: 0 0 4px; font-size: 1.5rem; }

.shop-pkg,
.shop-single__hint {
	display: block;
	font-size: .9rem;
	color: var(--cd-muted);
}
.shop-single__hint { margin: 6px 0 0; }

.shop-single__note {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-left: 3px solid #b8860b;
	background: #fdf7e7;
	border-radius: 0 8px 8px 0;
	font-size: .9rem;
	color: #6b5512;
}

.shop-single__cta { margin: 0 0 12px; }

/* Zweispaltiger Hauptteil */
.shop-single__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	gap: clamp(20px, 4vw, 48px);
	align-items: start;
}

.shop-single__h2 {
	margin: 32px 0 12px;
	font-size: 1.22rem;
	color: var(--cd-navy);
}
.shop-single__main > :first-child,
.shop-single__side > :first-child { margin-top: 0; }

.shop-single__text p,
.shop-single__editorial p,
.shop-single__list {
	margin: 0 0 12px;
	color: var(--cd-text);
	line-height: 1.7;
}

.shop-single__editorial {
	background: var(--shop-accent-soft);
	border-radius: var(--cd-radius);
	padding: 18px 20px;
}

.shop-single__src {
	margin: 4px 0 0;
	font-size: .84rem;
	color: var(--cd-muted);
}

.shop-single__notes {
	margin: 0;
	padding-left: 20px;
	color: var(--cd-text);
	line-height: 1.7;
}
.shop-single__notes li { margin-bottom: 6px; }

/* Datentabelle */
.shop-spec {
	margin: 0 0 20px;
	background: var(--cd-white);
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius);
	overflow: hidden;
}
.shop-spec__row {
	display: grid;
	grid-template-columns: 44% 56%;
	gap: 0;
	border-top: 1px solid var(--cd-line);
}
.shop-spec__row:first-child { border-top: 0; }
.shop-spec__key,
.shop-spec__val {
	margin: 0;
	padding: 10px 14px;
	font-size: .92rem;
	line-height: 1.45;
}
.shop-spec__key {
	color: var(--cd-muted);
	background: var(--cd-mint-2);
	font-weight: 600;
}
.shop-spec__val { color: var(--cd-navy); }
.shop-spec__hint {
	display: block;
	font-size: .8rem;
	font-weight: 400;
	color: var(--cd-muted);
}

/* -------------------------------------------------------------
   Weitere Angebote und Anbieterwahl
   ------------------------------------------------------------- */
.shop-related { margin: 48px 0 0; }
.shop-related__title,
.shop-providers__title {
	margin: 0 0 18px;
	font-size: 1.3rem;
	color: var(--cd-navy);
}
.shop-related__more,
.shop-back { margin: 18px 0 0; }
.shop-related__more a,
.shop-back a {
	color: var(--shop-accent);
	font-weight: 600;
	text-decoration: none;
}
.shop-related__more a:hover,
.shop-related__more a:focus,
.shop-back a:hover,
.shop-back a:focus { text-decoration: underline; }

.shop-providers {
	margin: 56px 0 8px;
	padding: 28px clamp(18px, 3vw, 32px);
	background: var(--cd-mint);
	border-radius: var(--cd-radius-lg);
}
.shop-providers__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
}
.shop-providers__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--cd-white);
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius);
	padding: 18px 20px;
	box-shadow: var(--cd-shadow-sm);
}
.shop-providers__name {
	margin: 0;
	font-size: 1.05rem;
	color: var(--cd-navy);
}
.shop-providers__name a { color: inherit; text-decoration: none; }
.shop-providers__name a:hover,
.shop-providers__name a:focus { text-decoration: underline; }
.shop-providers__text {
	margin: 0;
	font-size: .9rem;
	line-height: 1.6;
	color: var(--cd-muted);
}
.shop-providers__count {
	margin: 0;
	font-size: .84rem;
	color: var(--cd-muted);
}
.shop-providers__item--current {
	border-color: var(--shop-accent);
	box-shadow: none;
}
.shop-providers__note {
	margin: 16px 0 0;
	font-size: .84rem;
	line-height: 1.6;
	color: var(--cd-muted);
}

/* Hinweis zur Sortierung über gemischte Bezugsgrößen */
.cd-hint--sort {
	margin: -4px 0 16px;
	padding: 10px 12px;
	background: var(--cd-mint-2);
	border-left: 3px solid var(--shop-accent);
	border-radius: 0 8px 8px 0;
}

/* Sichtbarer Tastaturfokus auch für die reinen Textlinks dieses Bereichs.
   Die Knöpfe und Formularfelder bringen ihn aus candoc.css mit. */
.shop-related__more a:focus-visible,
.shop-back a:focus-visible,
.shop-providers__name a:focus-visible,
.shop-single__src a:focus-visible {
	outline: 3px solid var(--shop-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

/* -------------------------------------------------------------
   Schmale Darstellung
   ------------------------------------------------------------- */
@media (max-width: 960px) {
	.shop-single__top,
	.shop-single__cols { grid-template-columns: minmax(0, 1fr); }
	.shop-single__media { max-width: 420px; }
}

@media (max-width: 560px) {
	.shop-spec__row { grid-template-columns: minmax(0, 1fr); }
	.shop-spec__key { background: var(--cd-mint-2); padding-bottom: 4px; }
	.shop-spec__val { padding-top: 4px; }
	.shop-single__price .cd-price { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
	.shop-card,
	.shop-providers__item { transition: none; }
}
