/*
 * Alle Selektoren hängen an #putzer-popup, damit Theme- und Elementor-Styles
 * (z. B. .elementor-kit-11 button:hover) nicht durchschlagen.
 */

#putzer-popup[hidden] { display: none !important; }

#putzer-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: 'Putzer Pitch Sans', 'Pitch Sans', 'Courier New', monospace;
	animation: putzer-popup-fade .25s ease-out;
}

#putzer-popup *,
#putzer-popup *::before,
#putzer-popup *::after { box-sizing: border-box; }

#putzer-popup .putzer-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	cursor: pointer;
}

#putzer-popup .putzer-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	background: #000;
	color: #fff;
	border: 2px solid #fff;
}

#putzer-popup .putzer-popup__corner {
	position: absolute;
	top: 0;
	left: 0;
	width: 32px;
	height: 32px;
	display: block;
	pointer-events: none;
}

/* ---- Close-Button: kompletter Reset gegen Theme-/Elementor-Buttonstyles ---- */

#putzer-popup button.putzer-popup__close,
#putzer-popup button.putzer-popup__close:hover,
#putzer-popup button.putzer-popup__close:focus,
#putzer-popup button.putzer-popup__close:active,
#putzer-popup button.putzer-popup__close:focus-visible {
	all: unset;
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	transform: none;
	cursor: pointer;
	transition: opacity .2s ease;
	-webkit-tap-highlight-color: transparent;
}

#putzer-popup button.putzer-popup__close:hover { opacity: .6; }

#putzer-popup button.putzer-popup__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

#putzer-popup button.putzer-popup__close svg {
	display: block;
	width: 24px;
	height: 24px;
	pointer-events: none;
}

/* ---- Inhalt ---- */

#putzer-popup .putzer-popup__body {
	max-height: calc(100vh - 44px);
	max-height: calc(100dvh - 44px);
	overflow-y: auto;
	padding: 60px 48px 48px;
}

#putzer-popup .putzer-popup__title {
	margin: 0 0 .75em;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
}

#putzer-popup .putzer-popup__content {
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.6;
	color: #fff;
}
#putzer-popup .putzer-popup__content > :first-child { margin-top: 0; }
#putzer-popup .putzer-popup__content > :last-child { margin-bottom: 0; }
#putzer-popup .putzer-popup__content p { margin: 0 0 1em; color: inherit; font-family: inherit; }
#putzer-popup .putzer-popup__content h1,
#putzer-popup .putzer-popup__content h2,
#putzer-popup .putzer-popup__content h3,
#putzer-popup .putzer-popup__content h4 { color: #fff; font-family: inherit; font-weight: 700; margin: 1.2em 0 .5em; }
#putzer-popup .putzer-popup__content a,
#putzer-popup .putzer-popup__content a:hover,
#putzer-popup .putzer-popup__content a:focus { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#putzer-popup .putzer-popup__content a:hover { opacity: .75; }
#putzer-popup .putzer-popup__content img { max-width: 100%; height: auto; display: block; }
#putzer-popup .putzer-popup__content ul,
#putzer-popup .putzer-popup__content ol { margin: 0 0 1em 1.2em; padding: 0; }

html.putzer-popup-open { overflow: hidden; }

@media (max-width: 600px) {
	#putzer-popup { padding: 12px; }
	#putzer-popup .putzer-popup__body { padding: 56px 24px 28px; max-height: calc(100dvh - 28px); }
}

@keyframes putzer-popup-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	#putzer-popup { animation: none; }
	#putzer-popup button.putzer-popup__close { transition: none; }
}
