/* plan b catering – Sticker auf der Startseite: goldener Farbklecks (Dashboard → Sticker).
   Die Spritzer ragen rund 15 % über das Feld des Stickers hinaus. */

.planb-sticker {
	--planb-s: 216px;
	--planb-ft: 17px;
	--planb-fs: 12px;
	position: absolute;
	top: calc(50% - var(--planb-s) / 2 - 56px);
	right: max(56px, calc((100% - 1232px) / 2));
	z-index: 12;
	width: var(--planb-s);
	height: var(--planb-s);
	transform: rotate(-11deg);
	font-family: Helvetica, Arial, sans-serif;
}

@media (min-width: 1536px) {
	.planb-sticker { right: calc((100% - 1488px) / 2); }
}

.planb-sticker[hidden] { display: none; }

.planb-sticker-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	color: #000 !important;
	text-decoration: none !important;
	filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 26px rgba(201, 168, 76, 0.12));
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a.planb-sticker-link:hover,
a.planb-sticker-link:focus-visible {
	transform: rotate(8deg) scale(1.07);
}

.planb-sticker-shape,
.planb-sticker-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.planb-sticker-shape path { fill: #c9a84c; }

.planb-sticker-ring {
	animation: planbStickerSpin 28s linear infinite;
}

.planb-sticker-ring text {
	fill: #000;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.planb-sticker-body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3em;
	width: 58%;
	text-align: center;
	font-size: var(--planb-ft);
	line-height: 1.08;
}

.planb-sticker-small {
	font-size: var(--planb-fs);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.planb-sticker-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.planb-sticker-long .planb-sticker-title { font-size: 0.84em; }

.planb-sticker-small:empty,
.planb-sticker-arrow[hidden] { display: none; }

.planb-sticker-arrow {
	font-size: 1.15em;
	line-height: 0.8;
	transition: transform 0.3s;
}

a.planb-sticker-link:hover .planb-sticker-arrow { transform: translateX(4px); }

.planb-sticker-close {
	position: absolute;
	top: 2%;
	right: 2%;
	width: 28px;
	height: 28px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	border: 1px solid #c9a84c;
	border-radius: 50%;
	color: #c9a84c;
	font-family: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transform: rotate(11deg);
	transition: opacity 0.3s, background 0.3s, color 0.3s;
}

.planb-sticker:hover .planb-sticker-close,
.planb-sticker-close:focus-visible { opacity: 1; }

.planb-sticker-close:hover,
.planb-sticker-close:focus {
	background: #c9a84c;
	color: #000;
}

@media (hover: none) {
	.planb-sticker-close { opacity: 1; }
}

/* Tablet und Handy: oben rechts unter dem Menü; der Text der Startseite weicht aus. */
@media (max-width: 1023px) {
	.planb-sticker {
		--planb-s: 176px;
		--planb-ft: 15px;
		--planb-fs: 10.5px;
		top: 124px;
		right: 48px;
	}

	.planb-hero:has(.planb-sticker:not([hidden])) {
		padding-top: 316px !important;
		padding-bottom: 316px !important;
	}
}

@media (max-width: 767px) {
	.planb-sticker {
		--planb-s: 148px;
		--planb-ft: 12.5px;
		--planb-fs: 9.5px;
		top: 96px;
		right: 36px;
	}

	.planb-hero:has(.planb-sticker:not([hidden])) {
		padding-top: 262px !important;
		padding-bottom: 262px !important;
	}
}

/* Der Sticker «klebt» sich nach dem Laden auf die Seite. */
@keyframes planbStickerIn {
	0% { opacity: 0; transform: rotate(-70deg) scale(0.2); }
	100% { opacity: 1; transform: rotate(-11deg) scale(1); }
}

@keyframes planbStickerSpin {
	to { transform: rotate(360deg); }
}

.planb-js .planb-sticker {
	animation: planbStickerIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
}

.planb-sticker.planb-sticker-out {
	animation: none;
	opacity: 0;
	transform: rotate(40deg) scale(0.2);
	transition: opacity 0.3s, transform 0.3s;
}

.elementor-editor-active .planb-sticker { animation: none; }

@media (prefers-reduced-motion: reduce) {
	.planb-js .planb-sticker,
	.planb-sticker-ring { animation: none; }
	.planb-sticker-link { transition: none; }
}

/* Vorschau in der Verwaltung */
.planb-sticker-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 340px;
	height: 340px;
	background: #000;
	color: #c9a84c;
}

.planb-sticker-preview .planb-sticker {
	position: relative;
	top: auto;
	right: auto;
	animation: none;
}

.planb-sticker-preview .planb-sticker-close { display: none; }

/* Der Sticker richtet sich am ganzen Startbild aus, nicht am (leeren) Elementor-Baustein. */
.planb-hero .elementor-widget-shortcode,
.planb-hero .elementor-widget-shortcode > .elementor-shortcode { position: static; }
