/*
 * VIP Access – Gestaltung des Hinweises für nicht angemeldete Besucher.
 */

.vipaccess-notice {
	--vipa-gold: #b0832a;
	--vipa-gold-soft: #e8cd8c;
	--vipa-gold-pale: #f3dc9f;
	--vipa-ink: #17140f;
	--vipa-muted: #5f584d;
	--vipa-card: #ffffff;
	--vipa-card-end: #fbf7ee;
	--vipa-line: rgba(176, 131, 42, 0.24);

	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin: 1.75em auto;
	padding: clamp(30px, 6vw, 52px) clamp(20px, 6vw, 56px) clamp(30px, 5vw, 46px);
	border: 1px solid var(--vipa-line);
	border-radius: 24px;
	background: linear-gradient(180deg, var(--vipa-card) 0%, var(--vipa-card-end) 100%);
	box-shadow:
		0 1px 2px rgba(23, 20, 15, 0.04),
		0 4px 10px -4px rgba(23, 20, 15, 0.06),
		0 28px 56px -28px rgba(23, 20, 15, 0.28);
	color: var(--vipa-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
	animation: vipaccess-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

.vipaccess-notice [hidden] {
	display: none !important;
}

/* Feine goldene Linie oben */
.vipaccess-notice::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(232, 205, 140, 0) 0%, var(--vipa-gold-soft) 22%, var(--vipa-gold) 50%, var(--vipa-gold-soft) 78%, rgba(232, 205, 140, 0) 100%);
	pointer-events: none;
}

/* Weicher Lichtschein hinter dem Icon */
.vipaccess-notice__glow {
	position: absolute;
	z-index: -1;
	top: -150px;
	left: 50%;
	width: 460px;
	max-width: 140%;
	height: 300px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(232, 205, 140, 0.5), rgba(232, 205, 140, 0));
	pointer-events: none;
}

/* Icon-Plakette */
.vipaccess-notice__badge {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: 0 0 20px;
	border: 1px solid rgba(176, 131, 42, 0.32);
	border-radius: 50%;
	background: radial-gradient(circle at 32% 26%, #fffdf8 0%, #f9eed5 58%, #f1deae 100%);
	box-shadow:
		0 0 0 7px rgba(232, 205, 140, 0.18),
		0 14px 30px -12px rgba(176, 131, 42, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
	color: var(--vipa-gold);
}

.vipaccess-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	line-height: 0;
}

.vipaccess-notice__icon svg,
.vipaccess-notice__icon img {
	display: block;
	width: 36px !important;
	height: 36px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: contain;
}

/* Kleines Schloss an der Plakette */
.vipaccess-notice__lock {
	position: absolute;
	right: -3px;
	bottom: -3px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: linear-gradient(180deg, #2b261d 0%, #14110c 100%);
	box-shadow: 0 6px 14px -4px rgba(23, 20, 15, 0.55);
	color: var(--vipa-gold-pale);
	line-height: 0;
}

.vipaccess-notice__lock svg {
	display: block;
	width: 13px;
	height: 13px;
}

/* Überschrift */
.vipaccess-notice .vipaccess-notice__title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vipa-ink);
	font-family: inherit;
	font-size: clamp(1.25em, 1.05em + 0.8vw, 1.6em);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	text-transform: none;
}

/* Text */
.vipaccess-notice .vipaccess-notice__text {
	max-width: 34em;
	margin: 0 auto;
	color: var(--vipa-muted);
	font-size: 1em;
	line-height: 1.65;
}

.vipaccess-notice .vipaccess-notice__text p {
	margin: 0 0 0.65em;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.vipaccess-notice .vipaccess-notice__text > :last-child {
	margin-bottom: 0;
}

.vipaccess-notice .vipaccess-notice__text a {
	color: var(--vipa-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vipaccess-notice .vipaccess-notice__text ul,
.vipaccess-notice .vipaccess-notice__text ol {
	display: inline-block;
	margin: 0 0 0.65em;
	text-align: left;
}

/* Button */
.vipaccess-notice a.vipaccess-notice__button,
.vipaccess-notice a.vipaccess-notice__button:link,
.vipaccess-notice a.vipaccess-notice__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	margin: 26px 0 0;
	padding: 12px 22px 12px 28px;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #2c271e 0%, #13100b 100%) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 0 0 1px rgba(23, 20, 15, 0.92),
		0 12px 26px -12px rgba(23, 20, 15, 0.7);
	color: #ffffff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	text-shadow: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Manche Themes färben Links beim Anklicken/Fokus um – das hier verhindert es. */
.vipaccess-notice a.vipaccess-notice__button:hover,
.vipaccess-notice a.vipaccess-notice__button:focus,
.vipaccess-notice a.vipaccess-notice__button:active {
	background: linear-gradient(180deg, #2c271e 0%, #13100b 100%) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		0 0 0 1px #000000,
		0 0 0 5px rgba(232, 205, 140, 0.35),
		0 16px 32px -12px rgba(23, 20, 15, 0.75);
}

.vipaccess-notice a.vipaccess-notice__button:focus {
	outline: none !important;
}

.vipaccess-notice a.vipaccess-notice__button:focus-visible {
	outline: 3px solid var(--vipa-gold) !important;
	outline-offset: 3px !important;
}

.vipaccess-notice a.vipaccess-notice__button:active {
	transform: translateY(0);
}

.vipaccess-notice__button-text {
	color: inherit;
}

.vipaccess-notice__arrow {
	display: block;
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--vipa-gold-pale);
	transition: transform 0.2s ease;
}

.vipaccess-notice a.vipaccess-notice__button:hover .vipaccess-notice__arrow,
.vipaccess-notice a.vipaccess-notice__button:focus-visible .vipaccess-notice__arrow {
	transform: translateX(3px);
}

/* Kleine Bildschirme */
@media (max-width: 480px) {
	.vipaccess-notice {
		border-radius: 20px;
	}

	.vipaccess-notice a.vipaccess-notice__button,
	.vipaccess-notice a.vipaccess-notice__button:link,
	.vipaccess-notice a.vipaccess-notice__button:visited {
		width: 100%;
	}
}

/* Vorschau im Backend */
.vipaccess-notice.vipaccess-notice--preview {
	margin: 0;
	animation: none;
}

@keyframes vipaccess-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vipaccess-notice,
	.vipaccess-notice a.vipaccess-notice__button,
	.vipaccess-notice__arrow {
		animation: none;
		transition: none;
	}
}
