/* MomoZeit NFC-Sticker Slide-In Popup */

/* Wrapper trägt nur die --mz-nfc-* Variablen und die is-open-Klasse.
   Reiter und Panel sind bewusst UNABHÄNGIG voneinander fest positioniert
   (kein gemeinsames Flex-/Margin-Layout mehr) – so kann der Reiter nie
   durch das Panel "mit verschwinden". */
.mz-nfc-popup {
	font-family: Helvetica, Arial, sans-serif;
}

/* --- eingefahrener Reiter (immer sichtbar, außer Panel ist offen) --- */
.mz-nfc-popup__tab {
	position: fixed;
	top: var(--mz-nfc-top, 120px);
	right: 0;
	z-index: 99998;
	background: var(--mz-nfc-tab-bg, #023955);
	color: var(--mz-nfc-tab-color, #fff);
	padding: 14px 10px;
	border-radius: 8px 0 0 8px;
	cursor: pointer;
	box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	transition: background 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mz-nfc-popup__tab:hover {
	background: var(--mz-nfc-tab-hover, #e87707);
}

/* Reiter blendet nur optisch aus, WÄHREND das Panel offen ist -
   er bleibt im DOM und kommt automatisch zurück, sobald das Panel
   sich schließt/einfährt (kein "ganz weg", nur Panel <-> Reiter). */
.mz-nfc-popup.is-open .mz-nfc-popup__tab {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* --- ausgeklapptes Panel --- */
.mz-nfc-popup__panel {
	position: fixed;
	top: var(--mz-nfc-top, 120px);
	right: 0;
	z-index: 99999;
	width: var(--mz-nfc-width, 300px);
	max-width: calc(100vw - 40px);
	background: #f9f9f9;
	border-radius: 8px 0 0 8px;
	box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	transform: translateX(110%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.5s ease, opacity 0.5s ease;
}

.mz-nfc-popup.is-open .mz-nfc-popup__panel {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

.mz-nfc-popup__close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: transparent;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #333333;
	cursor: pointer;
	padding: 4px;
	z-index: 2;
}

.mz-nfc-popup__close:hover {
	color: #e87707;
}

.mz-nfc-popup__image {
	width: 100%;
	overflow: hidden;
	background: #023955;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mz-nfc-popup__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mz-nfc-popup__image-placeholder {
	color: #fff;
	opacity: 0.85;
}

.mz-nfc-popup__body {
	padding: 16px 18px 20px;
}

.mz-nfc-popup__title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
	color: #023955;
	font-weight: 700;
}

.mz-nfc-popup__text {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #333333;
}

.mz-nfc-popup__button {
	display: inline-block;
	background: #e87707;
	color: #fff !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.mz-nfc-popup__button:hover {
	background: #023955;
	color: #fff !important;
}

@media (max-width: 480px) {
	.mz-nfc-popup__tab,
	.mz-nfc-popup__panel {
		top: auto;
		bottom: 16px;
	}

	.mz-nfc-popup__panel {
		width: calc(100vw - 32px);
	}

	.mz-nfc-popup__tab {
		writing-mode: horizontal-tb;
		transform: none;
		border-radius: 8px 0 0 8px;
		padding: 10px 12px;
		min-height: auto;
	}
}
