/* WP Windpark Pinkelwelt – Styles */

/* ---------- Tropfen (Einstieg) ---------- */

#ppw-drop {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 2147483000;
	width: 20px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

#ppw-drop:hover {
	opacity: 1;
}

#ppw-drop:focus-visible {
	outline: 2px solid #e6b800;
	outline-offset: 3px;
	border-radius: 50%;
}

#ppw-drop svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Tropfen nur auf Geräten mit Maus + Tastatur anbieten */
@media (hover: none), (pointer: coarse) {
	#ppw-drop { display: none; }
}

/* ---------- 3D-Modus: Grundgerüst ---------- */

html.ppw-active,
html.ppw-active body {
	overflow: hidden !important;
	height: 100% !important;
	overscroll-behavior: none;
}

html.ppw-active body {
	cursor: none;
}

html.ppw-active #ppw-drop {
	display: none;
}

/* Die umgeklappte Seite (enthält den kompletten alten Body-Inhalt) */
#ppw-page {
	position: relative;
	width: 100%;
	background: transparent !important;
	transform-origin: 0 0;
	will-change: transform;
	z-index: 1;
}

/* Eigener Anstrich der Seite (liegt unter dem Inhalt, über dem Umland) */
#ppw-pagebg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #ffffff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 70px rgba(40, 30, 0, 0.18);
}

/* Umland: große "Schreibtischunterlage" rund um die Seite */
#ppw-ground {
	position: absolute;
	inset: -900px;
	z-index: -2;
	background-color: #e9e5da;
	background-image:
		radial-gradient(rgba(0, 0, 0, 0.055) 1.2px, transparent 1.3px),
		linear-gradient(rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.03));
	background-size: 56px 56px, 100% 100%;
}

/* Himmel */
#ppw-sky {
	position: fixed;
	left: -12vw;
	width: 124vw;
	height: 320vh;
	top: 0;
	z-index: 0;
	pointer-events: none;
	will-change: transform;
	background:
		radial-gradient(ellipse 26vw 22vh at 76% 41.5%, rgba(255, 244, 196, 0.9) 0%, rgba(255, 240, 180, 0.35) 38%, transparent 70%),
		linear-gradient(
			to bottom,
			#2f6db8 0%,
			#4f8cce 26%,
			#8fbce4 41%,
			#cfe5f4 47.5%,
			#f2ebd9 50%,
			#e6e0d2 52%,
			#dcd6c6 60%,
			#d4cebe 100%
		);
}

/* Wolkenband, bewegt sich mit der Blickrichtung */
#ppw-clouds {
	position: absolute;
	left: -100%;
	width: 300%;
	top: 38%;
	height: 14%;
	background:
		radial-gradient(ellipse 9% 34% at 12% 52%, rgba(255, 255, 255, 0.85), transparent 70%),
		radial-gradient(ellipse 12% 30% at 30% 38%, rgba(255, 255, 255, 0.7), transparent 70%),
		radial-gradient(ellipse 7% 26% at 47% 60%, rgba(255, 255, 255, 0.8), transparent 70%),
		radial-gradient(ellipse 11% 32% at 66% 45%, rgba(255, 255, 255, 0.75), transparent 70%),
		radial-gradient(ellipse 8% 28% at 85% 55%, rgba(255, 255, 255, 0.8), transparent 70%);
	background-size: 33.3333% 100%;
	background-repeat: repeat-x;
	filter: blur(1px);
}

/* Partikel-Canvas (Strahl, Spritzer) */
#ppw-fx {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

/* ---------- HUD ---------- */

#ppw-hud {
	position: fixed;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#ppw-crosshair {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 4px;
	height: 4px;
	margin: -2px 0 0 -2px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.55);
}

#ppw-clickhint {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, 28px);
	background: rgba(18, 18, 24, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 12px;
	padding: 6px 13px;
	border-radius: 999px;
	white-space: nowrap;
	animation: ppw-clickhint-pulse 1.6s ease-in-out infinite;
}

#ppw-clickhint[hidden] {
	display: none;
}

@keyframes ppw-clickhint-pulse {
	0%, 100% { opacity: 0.95; }
	50% { opacity: 0.55; }
}

#ppw-hint {
	position: absolute;
	left: 50%;
	bottom: 36px;
	transform: translateX(-50%);
	background: rgba(18, 18, 24, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
	padding: 12px 18px;
	border-radius: 14px;
	white-space: nowrap;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
	transition: opacity 0.8s ease;
}

#ppw-hint.ppw-fade {
	opacity: 0;
}

#ppw-hint kbd {
	display: inline-block;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-bottom-width: 2px;
	border-radius: 5px;
	padding: 1px 7px;
	margin: 0 2px;
	font-family: inherit;
	font-size: 12px;
}

#ppw-hint .ppw-sep {
	opacity: 0.45;
	margin: 0 7px;
}

/* Pause-Overlay (nach ESC) */
#ppw-pause {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 14, 0.45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	pointer-events: auto;
	cursor: default;
}

#ppw-pause[hidden] {
	display: none;
}

.ppw-pause-card {
	background: rgba(18, 18, 24, 0.92);
	color: #fff;
	border-radius: 18px;
	padding: 28px 34px;
	text-align: center;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
	max-width: 90vw;
}

.ppw-pause-card h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.ppw-pause-card p {
	margin: 0 0 18px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.ppw-pause-card button {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	margin: 0 6px;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ppw-pause-card button:hover {
	transform: translateY(-1px);
}

#ppw-resume {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

#ppw-exit {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Ziel-Aufladung & Auslösung ---------- */

.ppw-charging {
	box-shadow:
		0 0 calc(6px + var(--ppw-charge, 0) * 30px) calc(var(--ppw-charge, 0) * 9px) rgba(244, 200, 29, 0.85),
		inset 0 0 calc(var(--ppw-charge, 0) * 14px) rgba(244, 200, 29, 0.5) !important;
	border-radius: 6px;
}

.ppw-activated {
	animation: ppw-activated-flash 0.6s ease-out;
}

@keyframes ppw-activated-flash {
	0% { box-shadow: 0 0 50px 22px rgba(255, 226, 80, 1), inset 0 0 30px rgba(255, 226, 80, 0.9); }
	100% { box-shadow: 0 0 0 0 rgba(255, 226, 80, 0), inset 0 0 0 rgba(255, 226, 80, 0); }
}

/* ---------- Pfützen ---------- */

#ppw-puddles {
	position: absolute;
	inset: 0;
	z-index: 2147483500;
	pointer-events: none;
	overflow: visible;
}

.ppw-puddle {
	position: absolute;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0.1);
	transition: transform 0.35s ease-out, opacity 1.2s linear;
	background:
		radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.35) 0%, transparent 24%),
		radial-gradient(closest-side, rgba(232, 188, 16, 0.5) 0%, rgba(232, 188, 16, 0.42) 55%, rgba(232, 188, 16, 0.18) 78%, rgba(232, 188, 16, 0) 100%);
}
