/* Studio-Tour (mu-plugin lst-studio-tour.php). Schrift, Farben und Radien nur über die Variablen der Website. */

.lst-st {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #c3cdcc;
	color: var(--color-ink);
	font-family: var(--font-body);
	isolation: isolate;
}
.lst-st *, .lst-st *::before, .lst-st *::after { box-sizing: border-box; }

.lst-st-scroll { position: relative; }
.lst-st-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.lst-st-world {
	position: absolute;
	inset: 0;
	transform-origin: 50% 50%;
	transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
/* Verschiebung beim Öffnen setzt tour.js, damit der gewählte Ort links vom Panel mittig steht */

.lst-st-bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .8s ease;
}
.lst-st.is-loaded .lst-st-bg { opacity: 1; }

.lst-st-dim {
	position: absolute;
	inset: -10% -60%;
	z-index: 2;
	background: rgba(29, 29, 27, 0);
	pointer-events: none;
	transition: background-color .6s ease;
}
.lst-st.is-open .lst-st-dim { background: rgba(29, 29, 27, .62); pointer-events: auto; cursor: pointer; }

/* Ausschnitte, die beim Überfahren aufleuchten */
.lst-st-hs {
	all: unset;
	position: absolute;
	z-index: 3;
	top: var(--top);
	left: var(--left);
	width: var(--w);
	line-height: 0;
	cursor: pointer;
	transform-origin: center bottom;
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .4s ease;
}
.lst-st-hs-img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	filter: brightness(.95) contrast(1.03);
	transition: filter .3s ease;
}
.lst-st-hs:hover .lst-st-hs-img,
.lst-st-hs:focus-visible .lst-st-hs-img { filter: brightness(1.08); }
.lst-st-hs-shine {
	position: absolute;
	inset: 0;
	width: 100%;
	height: auto;
	pointer-events: none;
	mix-blend-mode: screen;
	filter: brightness(2.5) saturate(0);
	opacity: 0;
	-webkit-mask-image: linear-gradient(105deg, transparent 0%, transparent 40%, #fff 50%, transparent 60%, transparent 100%);
	mask-image: linear-gradient(105deg, transparent 0%, transparent 40%, #fff 50%, transparent 60%, transparent 100%);
	-webkit-mask-size: 300% 100%;
	mask-size: 300% 100%;
	-webkit-mask-position: -150% 0;
	mask-position: -150% 0;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}
.lst-st-hs.is-shining .lst-st-hs-shine { animation: lst-st-shine 2.2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes lst-st-shine {
	0% { opacity: 1; -webkit-mask-position: -150% 0; mask-position: -150% 0; }
	100% { opacity: 1; -webkit-mask-position: 250% 0; mask-position: 250% 0; }
}
.lst-st.is-open .lst-st-hs:not(.is-active) { opacity: .1; pointer-events: none; }
.lst-st-hs.is-active { z-index: 4; transform: scale(1.07); }
.lst-st-hs.is-active .lst-st-hs-img { filter: brightness(1.12); }

/* Nummern-Pins: eigene Ebene über allen Ausschnitten und der Abdunklung */
.lst-st-pins {
	position: absolute;
	inset: 0;
	z-index: 20;
	pointer-events: none;
}
.lst-st-pin {
	position: absolute;
	left: var(--left);
	top: var(--top);
	pointer-events: auto;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: translate(-50%, -100%);
	padding: 6px 6px 0;
	transition: opacity .3s ease;
}
.lst-st-pin::after {
	content: "";
	width: 2px;
	height: 12px;
	border-radius: 2px;
	background: linear-gradient(#fff, rgba(255, 255, 255, 0));
}
.lst-st-pin-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 12px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(29, 29, 27, .22);
	transition: background-color var(--speed, .25s), color var(--speed, .25s), transform var(--speed, .25s);
}
.lst-st-pin:hover .lst-st-pin-dot,
.lst-st-pin.is-hover .lst-st-pin-dot,
.lst-st-pin.is-active .lst-st-pin-dot { background: var(--color-accent); color: #fff; transform: scale(1.12); }
.lst-st-pin.is-focus .lst-st-pin-dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 5px var(--color-accent); }
.lst-st:not(.is-open) .lst-st-pin { animation: lst-st-float 2.8s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes lst-st-float {
	0%, 100% { transform: translate(-50%, -100%); }
	50% { transform: translate(-50%, calc(-100% - 5px)); }
}
.lst-st.is-open .lst-st-pin:not(.is-active) { opacity: 0; pointer-events: none; }
.lst-st.is-open .lst-st-pin.is-active { pointer-events: none; }
.lst-st.is-open .lst-st-hs.is-active { pointer-events: none; }

/* Hinweis unten links */
.lst-st-hint {
	position: absolute;
	z-index: 5;
	left: var(--space-md);
	bottom: var(--space-md);
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	margin: 0;
	padding: 8px 14px;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--color-ink);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 1.3;
	pointer-events: none;
	transition: opacity .4s ease;
}
.lst-st-hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px rgba(0, 113, 148, .18); }
.lst-st.is-open .lst-st-hint { opacity: 0; }
.lst-st-hint-mob { display: none; }

/* Panel rechts */
.lst-st-panel {
	position: absolute;
	z-index: 10;
	top: var(--space-md);
	right: var(--space-md);
	bottom: var(--space-md);
	width: min(400px, 38%);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: 0 20px 60px rgba(29, 29, 27, .25);
	transform: translateX(calc(100% + 32px));
	visibility: hidden;
	transition: transform .65s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .65s;
	outline: none;
}
.lst-st-panel, .lst-st-panel * { box-sizing: border-box; font-family: var(--font-body); }
.lst-st-panel .lst-st-title { font-family: var(--font-display); }
.lst-st-panel.is-open { transform: none; visibility: visible; transition: transform .65s cubic-bezier(.16, 1, .3, 1), visibility 0s; }

.lst-st-close {
	all: unset;
	position: absolute;
	z-index: 2;
	/* Weißes X ohne Fläche, im Bild oben rechts (Bild hat --space-sm Abstand zum Panelrand) */
	top: calc(var(--space-sm) + 6px);
	right: calc(var(--space-sm) + 6px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #fff;
	cursor: pointer;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
	transition: transform var(--speed, .25s), opacity var(--speed, .25s);
}
.lst-st-close svg { width: 16px; height: 16px; }
.lst-st-close:hover { transform: rotate(90deg); }
.lst-st-close:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: var(--radius-sm); }

.lst-st-panel-media {
	flex: 0 0 auto;
	height: clamp(110px, 38%, 280px);
	margin: var(--space-sm) var(--space-sm) 0;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--color-paper);
}
.lst-st-panel-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .3s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}
.lst-st-panel-img.is-out { opacity: 0; transform: scale(1.04); }

.lst-st-panel-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	min-height: 0;
	padding: var(--space-lg);
	overflow-y: auto;
}
.lst-st-meta {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	margin: 0;
	color: var(--color-muted);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;
}
.lst-st-index { color: var(--color-accent); font-variant-numeric: tabular-nums; }
.lst-st-index::after { content: "·"; margin-left: var(--space-xs); color: var(--color-muted); }
.lst-st-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--text-2xl);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--color-ink);
}
.lst-st-text {
	margin: 0;
	color: var(--color-muted);
	font-size: var(--text-sm);
	line-height: 1.6;
}
.lst-st-more {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	align-self: flex-start;
	color: var(--color-accent);
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
}
.lst-st-more:hover { color: var(--color-accent-dark); }
.lst-st-more:hover svg { transform: translateX(3px); }
.lst-st-more svg { transition: transform var(--speed, .25s); }
.lst-st-more[hidden] { display: none; }
.lst-st-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs);
	margin-top: auto;
	padding-top: var(--space-sm);
}
.lst-st-nav .lst-btn { cursor: pointer; height: 40px; }
.lst-st-nav .lst-btn:hover { background-color: #e5e5e5; }
.lst-st-dots { display: flex; gap: 6px; }
.lst-st-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(29, 29, 27, .18); transition: background-color var(--speed, .25s), transform var(--speed, .25s); }
.lst-st-dot.is-active { background: var(--color-accent); transform: scale(1.3); }

/* Text für Suchmaschinen und Screenreader */
.lst-st-list {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 1119px) {
	.lst-st-panel { width: min(380px, 44%); }
}

/* Tablet hoch und Handy: Bühne seitlich wischbar, Panel als Blatt von unten */
@media (max-width: 1023px) {
	.lst-st-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}
	.lst-st-scroll::-webkit-scrollbar { display: none; }
	.lst-st-stage { width: max(100%, 860px); }
	.lst-st-world { transform: none !important; }
	.lst-st-hint-text { display: none; }
	.lst-st-hint-mob { display: inline; }
	.lst-st-panel {
		position: fixed;
		z-index: 1000;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-height: min(78vh, 640px);
		border-radius: var(--radius-lg) var(--radius-lg) 0 0;
		transform: translateY(105%);
		box-shadow: 0 -12px 40px rgba(29, 29, 27, .25);
	}
	.lst-st-panel-media { height: 200px; min-height: 0; }
	.lst-st-panel-body { padding: var(--space-md) var(--gutter, 20px) calc(var(--space-md) + env(safe-area-inset-bottom, 0px)); }
	.lst-st-title { font-size: var(--text-xl); }
}
@media (max-width: 767px) {
	.lst-st-stage { width: 760px; }
	.lst-st-panel-media { height: 160px; }
	.lst-st-hint { left: var(--space-sm); bottom: var(--space-sm); }
}

@media (prefers-reduced-motion: reduce) {
	.lst-st-world, .lst-st-panel, .lst-st-panel-img { transition: none; }
	.lst-st:not(.is-open) .lst-st-pin { animation: none; }
	.lst-st-hs.is-shining .lst-st-hs-shine { animation: none; }
}
