/* CATBOO Members – Frontend */

.cbm-teaser {
	position: relative;
	margin-bottom: 0;
}

.cbm-teaser::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3em;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--cbm-bg, #fff));
	pointer-events: none;
}

.cbm-paywall {
	--cbm-accent: #9d174d;
	margin: 1.5em 0;
	padding: 2em 1.5em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	text-align: center;
	background: rgba(0, 0, 0, 0.02);
}

.cbm-paywall-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--cbm-accent);
	background: rgba(157, 23, 77, 0.1);
	margin-bottom: 0.5em;
}

.cbm-paywall-title {
	margin: 0.25em 0 0.5em;
}

.cbm-paywall-text {
	max-width: 36em;
	margin: 0 auto 1em;
}

.cbm-paywall-levels {
	list-style: none;
	margin: 0 auto 1.25em;
	padding: 0;
	max-width: 24em;
	text-align: left;
}

.cbm-paywall-levels li {
	display: flex;
	gap: 0.5em;
	align-items: baseline;
	padding: 0.5em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cbm-level-name {
	flex: 1;
	font-weight: 600;
}

.cbm-level-period {
	opacity: 0.7;
	font-size: 0.9em;
}

.cbm-button,
.cbm-button:visited {
	display: inline-block;
	padding: 0.75em 1.5em;
	border-radius: 999px;
	background: var(--cbm-accent, #9d174d);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.cbm-button:hover,
.cbm-button:focus {
	color: #fff;
	opacity: 0.9;
}

.cbm-paywall-login {
	margin: 0.75em 0 0;
	font-size: 0.95em;
}

.cbm-paywall-compact {
	display: flex;
	gap: 0.4em;
	align-items: center;
}

.cbm-paywall-compact svg {
	flex: none;
}

/* Geschützte Videos & Galerien */

.cbm-locked {
	--cbm-accent: #9d174d;
	position: relative;
	margin: 1.5em 0;
	min-height: 260px;
	border-radius: 12px;
	overflow: hidden;
	background: #1f1f23;
	color: #fff;
}

.cbm-locked-video {
	aspect-ratio: 16 / 9;
	min-height: 220px;
}

.cbm-locked-preview {
	position: absolute;
	inset: 0;
	display: flex;
	gap: 4px;
}

.cbm-locked-preview img {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	max-width: none;
}

.cbm-locked-blur .cbm-locked-preview img {
	filter: blur(14px);
	transform: scale(1.1);
}

.cbm-locked-overlay {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	height: 100%;
	min-height: inherit;
	padding: 1.5em;
	text-align: center;
	background: rgba(0, 0, 0, 0.45);
}

.cbm-locked-gallery .cbm-locked-overlay {
	min-height: 260px;
}

.cbm-locked-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.cbm-locked-title {
	margin: 0;
	font-size: 1.2em;
	font-weight: 700;
	color: #fff;
}

.cbm-locked-text {
	margin: 0 0 0.5em;
	max-width: 32em;
	color: rgba(255, 255, 255, 0.9);
}

.cbm-locked-login {
	margin: 0.4em 0 0;
	font-size: 0.9em;
}

.cbm-locked-login a,
.cbm-locked-login a:visited {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Download-Box ---------- */

.cbm-dlbox {
	--dl-ink: #2a2420;
	--dl-muted: #7a6f66;
	--dl-line: #ece6df;
	--dl-soft: #faf7f4;
	--dl-accent: #b23a48;
	--dl-grad: linear-gradient(135deg, #e0636e 0%, #c2185b 50%, #8e4bb0 100%);
	box-sizing: border-box;
	max-width: 560px;
	margin: 2em auto;
	padding: 22px;
	border: 1px solid var(--dl-line);
	border-radius: 18px;
	background: #fff;
	color: var(--dl-ink);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	box-shadow: 0 8px 30px rgba(42, 36, 32, 0.06);
	transition: opacity 0.2s;
}

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

.cbm-dlbox.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.cbm-dlbox-admin {
	padding: 14px 18px;
	font-size: 13px;
	color: #8a5a00;
	background: #fff4e0;
	border-color: #f3dfb5;
	box-shadow: none;
}

.cbm-dlbox-head {
	display: flex;
	gap: 16px;
	align-items: center;
}

.cbm-dlbox-thumb {
	position: relative;
	flex: none;
	width: 92px;
	height: 92px;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(135deg, #3a2a35 0%, #7a3b5c 55%, #c2185b 100%) center / cover no-repeat;
	box-shadow: 0 6px 18px rgba(122, 59, 92, 0.25);
}

.cbm-dlbox-thumb.is-blurred {
	filter: blur(3px);
}

.cbm-dlbox-thumb-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.85);
}

.cbm-dlbox-count {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 1px 6px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.5;
}

.cbm-dlbox-titles {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cbm-dlbox-eyebrow {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dl-accent);
}

.cbm-dlbox-title {
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--dl-ink);
}

.cbm-dlbox-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cbm-dlbox-chip {
	padding: 3px 9px;
	border-radius: 999px;
	background: #f6f1ec;
	font-size: 12px;
	font-weight: 600;
	color: #5a4f46;
	line-height: 1.4;
}

#top .cbm-dlbox a.cbm-dlbox-btn,
.cbm-dlbox a.cbm-dlbox-btn {
	margin-top: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--dl-grad);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(194, 24, 91, 0.28);
	transition: transform 0.15s, box-shadow 0.15s;
}

#top .cbm-dlbox a.cbm-dlbox-btn:hover,
.cbm-dlbox a.cbm-dlbox-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(194, 24, 91, 0.34);
	color: #fff;
}

#top .cbm-dlbox a.cbm-dlbox-btn:focus-visible,
.cbm-dlbox a:focus-visible {
	outline: 3px solid #8e4bb0;
	outline-offset: 3px;
}

#top .cbm-dlbox a.cbm-dlbox-btn.is-done,
.cbm-dlbox a.cbm-dlbox-btn.is-done {
	background: linear-gradient(135deg, #2f9e5a, #1f7a44);
	box-shadow: 0 10px 24px rgba(31, 122, 68, 0.25);
}

.cbm-dlbox-btn-icon {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbm-dlbox-btn-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cbm-dlbox-btn-text strong {
	font-size: 17px;
	line-height: 1.25;
	color: #fff;
}

.cbm-dlbox-btn-text small {
	font-size: 12.5px;
	opacity: 0.88;
	color: #fff;
}

.cbm-dlbox-btn-arrow {
	font-size: 22px;
	opacity: 0.9;
}

.cbm-dlbox-files {
	margin-top: 14px;
}

.cbm-dlbox-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid #f1ece6;
}

.cbm-dlbox-file-icon {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: #fbeef0;
	color: var(--dl-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbm-dlbox-file-text,
.cbm-dlbox-upgrade-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cbm-dlbox-file-text small,
.cbm-dlbox-upgrade-text small {
	font-size: 12.5px;
	color: var(--dl-muted);
}

#top .cbm-dlbox a.cbm-dlbox-small,
#top .cbm-dlbox a.cbm-dlbox-cta,
.cbm-dlbox a.cbm-dlbox-small,
.cbm-dlbox a.cbm-dlbox-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--dl-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

#top .cbm-dlbox a.cbm-dlbox-cta,
.cbm-dlbox a.cbm-dlbox-cta {
	height: 46px;
	padding: 0 26px;
	font-size: 15px;
}

#top .cbm-dlbox a.cbm-dlbox-sibling,
.cbm-dlbox a.cbm-dlbox-sibling {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid #efe7e1;
	color: inherit;
	text-decoration: none;
}

#top .cbm-dlbox a.cbm-dlbox-sibling:hover,
.cbm-dlbox a.cbm-dlbox-sibling:hover {
	border-color: #e2cfd6;
	background: #fdf9fa;
}

.cbm-dlbox-sibling-img {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: linear-gradient(135deg, #3a2a35 0%, #7a3b5c 55%, #c2185b 100%) center / cover no-repeat;
}

.cbm-dlbox-sibling-text {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cbm-dlbox-sibling-text small:first-child {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8c7e70;
}

.cbm-dlbox-sibling-text small {
	font-size: 12px;
	color: var(--dl-muted);
}

.cbm-dlbox-sibling-arrow {
	font-size: 20px;
	color: var(--dl-accent);
}

.cbm-dlbox-quota {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.cbm-dlbox-quota-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 12.5px;
}

.cbm-dlbox-muted {
	font-size: 11.5px;
	color: #8c7e70;
}

.cbm-dlbox-quota-head .cbm-dlbox-muted {
	font-size: 12.5px;
	color: var(--dl-muted);
	white-space: nowrap;
}

.cbm-dlbox-bar {
	height: 6px;
	border-radius: 4px;
	background: #f1e9e3;
	overflow: hidden;
}

.cbm-dlbox-bar i {
	display: block;
	height: 6px;
	border-radius: 4px;
	background: linear-gradient(90deg, #e0636e, #8e4bb0);
}

.cbm-dlbox-note {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--dl-muted);
}

.cbm-dlbox-locked {
	margin-top: 18px;
	padding: 18px;
	border-radius: 14px;
	background: #faf3f5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.cbm-dlbox-locked > strong {
	font-size: 16px;
}

.cbm-dlbox-locked > span:not(.cbm-dlbox-lock) {
	max-width: 340px;
	font-size: 13.5px;
	color: #5a4f46;
}

.cbm-dlbox-lock {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fbeef0;
	color: var(--dl-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

#top .cbm-dlbox a.cbm-dlbox-link,
.cbm-dlbox a.cbm-dlbox-link {
	font-size: 13px;
	color: var(--dl-accent);
}

.cbm-dlbox-alert {
	margin-top: 18px;
	padding: 16px;
	border-radius: 14px;
	background: #fff4e0;
	color: #8a5a00;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.cbm-dlbox-alert div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cbm-dlbox-alert span {
	font-size: 13.5px;
	color: #5a4f46;
}

.cbm-dlbox-upgrade {
	margin-top: 12px;
	padding: 14px;
	border-radius: 14px;
	border: 1px dashed #e6dfd8;
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.cbm-dlbox-upgrade-icon {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--dl-grad);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 480px) {
	.cbm-dlbox {
		padding: 18px;
		margin: 1.5em 0;
	}
	.cbm-dlbox-thumb {
		width: 76px;
		height: 76px;
	}
	.cbm-dlbox-title {
		font-size: 16.5px;
	}
}

/* Enfold färbt <strong> und Links ein – in der Box gelten die eigenen Farben. */
#top .cbm-dlbox strong {
	color: inherit;
}

#top .cbm-dlbox .cbm-dlbox-title {
	color: var(--dl-ink);
}

#top .cbm-dlbox .cbm-dlbox-btn-text strong,
#top .cbm-dlbox .cbm-dlbox-btn-text small {
	color: #fff;
}
