/* == el-point-map-container == */
.el-point-map-canvas{
	position: relative;
}
.el-point-map-canvas .bhImageInner {
	position: relative;
}
.el-point-map-canvas .el-point-map-element {
	position: absolute;
}
body:not(.bhe-state-editing) .el-point-map-container .bhImageInner img { 
	width: 100% !important;
	height: auto !important;
}

/*
	Point Items für Backend Editing
*/
.el-point-map-container-points {
	display: none;
	position: relative;
	padding-top: 3rem;
}
.bhe-state-editing .el-point-map-container-points {
	display: block;
	margin-bottom: 4rem;
}
.el-point-map-container-points:before {
	content: 'Punkte bearbeiten';
	text-align: center;
	display: block;
}
.el-point-map-container-points > .bhContainer {
	display: flex;
	flex-wrap: wrap;
}
.el-point-map-container-points > .bhContainer,
.el-point-map-elements {
	counter-reset:step;
}
.el-point-map-container-points .el-point-map-element {
	width: 33%;
	margin-bottom: 3rem !important;
	flex-grow: 0;
	flex-shrink: 0;
}
.el-point-map-container-points .el-point-map-point {
	top: 0;
	left: 0;
}

/*
	Map Container
*/
.el-point-map-element {
	margin-bottom: 0 !important;
}

.el-point-map-container:not(.bhe-state-current-editing-element) .bhImageInner {
	overflow: visible !important;
}

.el-point-map-canvas {
	transform: translate(0);
}

/* Point */
.el-point-map-point {
	position: absolute;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
    align-items: center;
    font-size: 5rem;
	width: 1em;
    height: 1em;
    margin-left: -0.5em;
	margin-top: -0.5em;
	border-radius: 1em;
 	background-color: #415041;
    cursor: pointer;
	transition: all 0.4s;
}
.el-point-map-point-inner {
	font-size: 0.5em;
}
.el-point-map-point-inner:before {
	counter-increment: step;
	content: counter(step);
}

/* Tooltip */
.el-point-map-canvas .el-point-map__tooltip {
	position: absolute;
	box-sizing: border-box;
	bottom: 5rem;
	width: 30rem;
	max-width: 100vw;
	margin-left: -15rem;	
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
}
.el-point-map__tooltip.state-left-edge {
	margin-left: 0rem;
	left: -2.75rem;
}
.el-point-map__tooltip.state-right-edge {
	margin-left: 0rem;
	right: -2.75rem;
}

.el-point-map-canvas .el-point-map-element.active .el-point-map-point,
.el-point-map-canvas .el-point-map-element:hover .el-point-map-point {
	background: #B93C1E;
}
.el-point-map-canvas .el-point-map-element.active .el-point-map__tooltip,
.el-point-map-canvas .el-point-map-element:hover .el-point-map__tooltip {
	opacity: 1;
	pointer-events: all;  
	z-index: 10;
}

.el-point-map-canvas .el-point-map__tooltip:after {
	display: none;
	content: '';
	width: 0;
	height: 0;
	position: absolute;
	bottom: -1.6rem;
	display: block;
	left: 50%;
	margin-left: -1.7rem;
	border-style: solid;
	border-width: 1.7rem 1.7rem 0 1.7rem;
	border-color: #051e05 transparent transparent transparent;
}
.el-point-map__tooltip.state-left-edge:after {
	left: 1rem;
	right: auto;
	margin-left: 0rem;
}
.el-point-map__tooltip.state-right-edge:after {
	left: auto;
	right: 1rem;
}
 

/* == Select-Form == */
.el-point-map-select-picture {
	position: relative;
}
.el-point-map-select-picture img {
	width: 100% !important;
	height: auto;
	margin-bottom: 20px;
}
.el-point-map-select-marker{
	width: 2px;
	height: 2px;
	border-radius: 5px;
	border: 5px solid #c7f96d;
	position: absolute;
	margin-left: -6px;
	margin-top: -6px;
	-webkit-box-shadow: 0px 0px 20px rgba(0,0,0,1);
	        box-shadow: 0px 0px 20px rgba(0,0,0,1);
}


/* == Project == */

.el-point-map {
	/* == temporär, damit viewport nicht geändert wird == */
	overflow-x: hidden;
}

.el-point-map__tooltip {
	color: white;
	background: #051E05;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	font-size: 1.6rem;
	color: #FFFFFF;
	line-height: 2;
}



.el-point-map-point-inner {
	color: white;
}

.el-point-map-container-inner {
	position: relative;
}

.el-point-map__title {
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.el-point-map__link {
	font-weight: 400;
}

@media( max-width: 1023px ){
	.el-point-map-point {
		font-size: 4rem;
	}
}

/*
	ACHTUNG width wir auch im JS verwendet, dort wird hier der "bottom" Wert gesetzt
*/
@media( max-width: 767px ){
	.el-point-map-point {
		font-size: 3rem;
	}
	.el-point-map-canvas .el-point-map__tooltip {
		position: fixed;
		width: 300px;
		left: 50% !important;
		right: auto !important;
		margin: 2rem 0 0rem -150px;
		bottom: auto;
		
	}
	.el-point-map-canvas .el-point-map__tooltip:after {
		display: none;
	}
}