.wwh-wrap {
	--wwh-water: #e6007e;
	--wwh-heat: #d7141a;
	--wwh-context: #8b9096;
	--wwh-offset: 0px;
}
.wwh-map { position: relative; width: 100%; max-width: 100%; }
.wwh-stage { position: relative; line-height: 0; }
.wwh-image { display: block; width: 100%; height: auto; }
.wwh-intro { margin: 0 0 1.25em; font-size: 1.1em; }
.wwh-intro p { margin: 0 0 .6em; }

/* Ein Hotspot ist ein Nullpunkt; Punkt und Label hängen daran. */
.wwh-spot {
	--c: var(--wwh-context);
	--s: clamp(14px, 2.2vw, 24px);
	position: absolute;
	width: 0;
	height: 0;
	display: block;
	overflow: visible;
	text-decoration: none;
	line-height: 1.2;
	z-index: 1;
}
button.wwh-spot {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.wwh-spot--water { --c: var(--wwh-water); z-index: 3; }
.wwh-spot--heat  { --c: var(--wwh-heat);  z-index: 3; }
.wwh-spot--context { z-index: 2; }

.wwh-dot {
	position: absolute;
	left: 0; top: 0;
	width: var(--s); height: var(--s);
	margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 2px #fff, 0 1px 5px rgba(0, 0, 0, .35);
	transition: transform .15s ease;
}
/* größere Klickfläche für Touch */
.wwh-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }

/* Pulsieren nur bei Wasser und Wärme */
.wwh-spot--water .wwh-dot::before,
.wwh-spot--heat .wwh-dot::before {
	content: "";
	position: absolute; inset: 0;
	border-radius: 50%;
	background: var(--c);
	opacity: .55;
	animation: wwh-pulse 2.2s ease-out infinite;
}
@keyframes wwh-pulse {
	0%   { transform: scale(1);   opacity: .55; }
	100% { transform: scale(2.8); opacity: 0; }
}

.wwh-label {
	position: absolute;
	top: calc(var(--s) / 2 + 6px);
	left: 0;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .92);
	color: #1d1f21;
	font-size: clamp(10px, 1.35vw, 15px);
	font-weight: 600;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.wwh-spot--context .wwh-label {
	font-size: clamp(9px, 1.1vw, 12px);
	font-weight: 500;
	color: #5a5f64;
	background: rgba(255, 255, 255, .8);
}

/* Namen unter den Hotspots nur auf Wunsch (Block-Option) */
.wwh-map:not([data-labels]) .wwh-label { display: none; }
.wwh-label::before, .wwh-label::after { content: none !important; }

/* Labels am Bildrand nicht abschneiden */
.wwh-spot--left .wwh-label  { left: calc(var(--s) / -2); transform: none; }
.wwh-spot--right .wwh-label { left: auto; right: calc(var(--s) / -2); transform: none; }

a.wwh-spot:hover .wwh-dot, a.wwh-spot:focus-visible .wwh-dot,
button.wwh-spot:hover .wwh-dot, button.wwh-spot:focus-visible .wwh-dot,
.wwh-spot.is-open .wwh-dot { transform: scale(1.2); }
a.wwh-spot:hover .wwh-label, button.wwh-spot:hover .wwh-label, .wwh-spot.is-open .wwh-label { color: var(--c); }
.wwh-spot:focus { outline: none; }
.wwh-spot:focus-visible .wwh-dot { outline: 2px solid var(--c); outline-offset: 3px; }
.wwh-spot:focus-visible .wwh-label { outline: 2px solid var(--c); outline-offset: 2px; }

/* Toolbox */
.wwh-pop[hidden] { display: none; }
.wwh-pop {
	--c: var(--wwh-context);
	position: absolute;
	left: 0; top: 0;
	z-index: 20;
	box-sizing: border-box;
	width: max-content;
	max-width: min(340px, calc(100% - 16px));
	padding: 16px 18px 14px;
	background: #fff;
	color: #1d1f21;
	border-radius: 8px;
	border-left: 4px solid var(--c);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	white-space: normal;
	animation: wwh-pop-in .16s ease-out;
}
.wwh-pop--water { --c: var(--wwh-water); }
.wwh-pop--heat  { --c: var(--wwh-heat); }
@keyframes wwh-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.wwh-pop { font-synthesis: weight style; }
.wwh-pop p { margin: 0; }
.wwh-wrap .wwh-pop strong, .wwh-wrap .wwh-pop b { font-weight: 700; }
.wwh-wrap .wwh-pop em, .wwh-wrap .wwh-pop i { font-style: italic; }
.wwh-pop-close + * { padding-right: 30px; }
.wwh-pop-title { font-size: 1.07em; font-weight: 700; line-height: 1.3; }
.wwh-pop-sub { margin-top: .2em !important; font-style: italic; }
.wwh-pop-text { margin-top: .6em; }
.wwh-pop-text p { margin: 0 0 .6em; }
.wwh-pop-text p:last-child { margin-bottom: 0; }
.wwh-pop-product { margin-top: .7em !important; font-size: .87em; color: #5a5f64; }
.wwh-pop-more { margin-top: .7em !important; font-size: .9em; }
.wwh-pop-more a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 3px; }

.wwh-pop-close {
	position: absolute;
	top: 8px; right: 8px;
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	padding: 0; margin: 0;
	border: 0; border-radius: 50%;
	background: transparent;
	color: #5a5f64;
	cursor: pointer;
}
.wwh-pop-close:hover { background: #eceff1; color: #1d1f21; }
.wwh-pop-close:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) {
	.wwh-spot .wwh-dot::before { animation: none !important; opacity: 0; }
	.wwh-dot { transition: none; }
	.wwh-pop { animation: none; }
}
