/* Tierheim Lübeck – 360°-Rundgang */
.th360 {
	--th360-bordeaux: #7B1E2E;
	--th360-orange: #E8793A;
	--th360-beige: #F0E6D6;
	max-width: 100%;
	margin: 0 auto;
}

.th360__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 260px;
	border-radius: 12px;
	overflow: hidden;
	background: #1c1c1c center/cover no-repeat;
	cursor: grab;
	touch-action: none;
}

.th360__stage.is-dragging { cursor: grabbing; }
.th360__stage canvas { display: block; width: 100%; height: 100%; }

/* Fallback: flaches Bild, wenn kein WebGL */
.th360__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.th360__loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #fff;
	font-size: 15px;
	background: rgba(28, 28, 28, .55);
	transition: opacity .35s ease;
}

.th360__loader.is-hidden { opacity: 0; pointer-events: none; }

.th360__spinner {
	width: 22px;
	height: 22px;
	border: 3px solid rgba(255, 255, 255, .35);
	border-top-color: var(--th360-orange);
	border-radius: 50%;
	animation: th360-spin .9s linear infinite;
}

@keyframes th360-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.th360__spinner { animation-duration: 3s; }
}

.th360__hint {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(28, 28, 28, .6);
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity .4s ease;
}

.th360__hint.is-hidden { opacity: 0; }

.th360__caption {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 7px 14px;
	border-radius: 8px;
	background: rgba(123, 30, 46, .82);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
}

.th360__fs {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(28, 28, 28, .6);
	color: #fff;
	cursor: pointer;
	transition: background .2s ease;
}

.th360__fs:hover,
.th360__fs:focus-visible { background: var(--th360-orange); }
.th360__fs svg { width: 18px; height: 18px; fill: currentColor; }

.th360__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	padding-bottom: 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.th360__thumb {
	flex: 0 0 auto;
	width: 116px;
	padding: 0;
	border: 3px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	transition: border-color .2s ease, transform .2s ease;
}

.th360__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.th360__thumb span {
	display: block;
	padding: 5px 4px;
	background: var(--th360-beige);
	color: var(--th360-bordeaux);
	font-size: 12px;
	line-height: 1.25;
	text-align: center;
}

.th360__thumb:hover { transform: translateY(-2px); }
.th360__thumb:hover,
.th360__thumb:focus-visible { border-color: var(--th360-orange); }
.th360__thumb.is-active { border-color: var(--th360-bordeaux); }

@media (max-width: 767px) {
	.th360__thumb { width: 96px; }
	.th360__caption { font-size: 13px; }
	.th360__hint { font-size: 12px; }
}

/* Pfeile an der Standort-Leiste (15.09.2026) – ohne sie erreicht man auf Mac/Handy
   die abgeschnittenen Standorte nicht, weil die Scrollleiste unsichtbar ist. */
.th360__thumbnav {
	position: relative;
	margin-top: 14px;
}
.th360__thumbnav .th360__thumbs { margin-top: 0; }

.th360__pfeil {
	position: absolute;
	top: calc(50% - 3px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--th360-bordeaux);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .2s ease;
}
.th360__pfeil[hidden] { display: none; }
.th360__pfeil--zurueck { left: -8px; }
.th360__pfeil--vor { right: -8px; }
.th360__pfeil:hover,
.th360__pfeil:focus-visible { background: var(--th360-orange); }
.th360__pfeil svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 767px) {
	.th360__pfeil { width: 34px; height: 34px; }
	.th360__pfeil--zurueck { left: -4px; }
	.th360__pfeil--vor { right: -4px; }
}

/* Pfeile deutlicher (Susanne, PDF 10.09., Nachtrag 24.09.2026) – höhere Spezifität,
   weil der Button-Reset von Hello Elementor sonst Rahmen/Farbe überschreibt */
.th360__thumbnav button.th360__pfeil {
	width: 48px; height: 48px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #6B0931;
	color: #fff;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}
.th360__thumbnav button.th360__pfeil svg { width: 30px; height: 30px; }
.th360__thumbnav button.th360__pfeil:hover,
.th360__thumbnav button.th360__pfeil:focus-visible { background: #F46F1B; color: #fff; border-color: #fff; }
@media (max-width: 767px) {
	.th360__thumbnav button.th360__pfeil { width: 42px; height: 42px; }
}
