/* Hero-Button – DieGrüne15
   Farben/Maße kommen als CSS-Variablen vom Elementor-Widget (Fallbacks = Standard).
   Variablen statt direkter Eigenschaften, damit die !important-Regeln gegen
   Theme-Buttons (Hendon/Qode) die Widget-Einstellungen nicht überstimmen. */

/* ---------- Position im Container ---------- */
.elementor-widget-dg15hb_hero_button.dg15hb-pos-abs {
	position: absolute !important;
	left: var(--dg15hb-x, 50%);
	top: var(--dg15hb-y, 50%);
	translate: -50% -50%;
	z-index: var(--dg15hb-z, 5);
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

.dg15hb {
	display: inline-block;
	line-height: 0;
}

.dg15hb-hint {
	padding: 10px 14px;
	border: 1px dashed #a3532f;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	color: #3b2f22;
	font: 13px/1.4 system-ui, sans-serif;
}

/* ---------- Button ---------- */
.dg15hb-btn,
.dg15hb-btn:hover,
.dg15hb-btn:focus,
.dg15hb-btn:active {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box !important;
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.65em;
	height: var(--dg15hb-size, 84px) !important;
	min-width: var(--dg15hb-size, 84px) !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: var(--dg15hb-radius, 999px) !important;
	background: var(--dg15hb-bg, #a3532f) !important;
	color: var(--dg15hb-fg, #fff) !important;
	font: inherit;
	font-weight: 600;
	line-height: 1 !important;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none !important;
	text-shadow: none;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.dg15hb-btn.dg15hb-has-label {
	padding: 0 calc(var(--dg15hb-size, 84px) * 0.42) 0 calc(var(--dg15hb-size, 84px) * 0.32) !important;
}

.dg15hb-btn:hover,
.dg15hb-btn:focus-visible {
	background: var(--dg15hb-bg-h, #4f6b3a) !important;
	color: var(--dg15hb-fg-h, #fff) !important;
	transform: scale(1.06);
}

.dg15hb-btn:focus-visible {
	outline: 3px solid var(--dg15hb-fg, #fff);
	outline-offset: 3px;
}

.dg15hb-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--dg15hb-icon, 32px);
	height: var(--dg15hb-icon, 32px);
	font-size: var(--dg15hb-icon, 32px);
	line-height: 1;
	color: inherit;
}

.dg15hb-btn__icon i {
	font-size: inherit;
	line-height: 1;
	color: inherit;
}

.dg15hb-btn__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.dg15hb-btn__label {
	font-size: 17px;
	line-height: 1.1;
	white-space: nowrap;
}

/* ---------- Pulsieren ---------- */
@keyframes dg15hb-ring {
	0% {
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 0 var(--dg15hb-pulse, rgba(163, 83, 47, 0.55));
	}
	75%,
	100% {
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 var(--dg15hb-ring, 22px) transparent;
	}
}

@keyframes dg15hb-beat {
	0%,
	100% {
		scale: 1;
	}
	50% {
		scale: 1.07;
	}
}

.dg15hb-puls-ring .dg15hb-btn {
	animation: dg15hb-ring var(--dg15hb-dur, 2.4s) ease-out infinite;
}

.dg15hb-puls-beat .dg15hb-btn {
	animation: dg15hb-beat var(--dg15hb-dur, 2.4s) ease-in-out infinite;
}

.dg15hb-puls-both .dg15hb-btn {
	animation:
		dg15hb-ring var(--dg15hb-dur, 2.4s) ease-out infinite,
		dg15hb-beat var(--dg15hb-dur, 2.4s) ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.dg15hb-btn {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Video-Fenster (wird per JS direkt unter <body> angehängt) ---------- */
html.dg15hb-lock {
	overflow: hidden !important;
}

.dg15hb-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dg15hb-overlay, rgba(24, 19, 14, 0.85));
	opacity: 0;
	transition: opacity 0.25s ease;
}

.dg15hb-modal.is-open {
	opacity: 1;
}

.dg15hb-modal__box {
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.dg15hb-modal.is-open .dg15hb-modal__box {
	transform: none;
}

.dg15hb-modal__box iframe,
.dg15hb-modal__box video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	background: #000;
	object-fit: contain;
}

.dg15hb-modal .dg15hb-modal__close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(24, 19, 14, 0.62);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dg15hb-modal .dg15hb-modal__close:hover,
.dg15hb-modal .dg15hb-modal__close:focus-visible {
	background: #a3532f;
	color: #fff;
}

.dg15hb-modal .dg15hb-modal__close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.dg15hb-modal__close svg {
	width: 18px;
	height: 18px;
}

@media (prefers-reduced-motion: reduce) {
	.dg15hb-modal,
	.dg15hb-modal__box {
		transition: none;
	}
}
