/*! hapo Cookie Blocker – banner.css */
#hcb-root,
#hcb-root *,
.hcb-ph,
.hcb-ph * { box-sizing: border-box; }

#hcb-root[hidden],
#hcb-root [hidden],
#hcb-float[hidden] { display: none !important; }

#hcb-root {
	position: fixed;
	z-index: 2147483000;
	font-family: var(--hcb-font, inherit);
	font-size: var(--hcb-font-size, 15px);
	line-height: 1.5;
	color: var(--hcb-text, #1f2328);
}

.hcb--bar { left: 0; right: 0; bottom: 0; padding: 16px; }
.hcb--bar .hcb-dialog { max-width: var(--hcb-width, 1100px); margin: 0 auto; }

.hcb--box-left,
.hcb--box-right { bottom: 0; padding: 16px; width: 100%; max-width: calc(var(--hcb-width, 420px) + 32px); }
.hcb--box-left { left: 0; }
.hcb--box-right { right: 0; }
.hcb--box-left .hcb-buttons,
.hcb--box-right .hcb-buttons { flex-direction: column; }
#hcb-root.hcb--box-left .hcb-btn,
#hcb-root.hcb--box-right .hcb-btn { width: 100%; }

.hcb--modal { top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hcb--modal .hcb-dialog { width: 100%; max-width: var(--hcb-width, 620px); }
.hcb-overlay { display: none; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--hcb-overlay, rgba(0, 0, 0, .45)); }
.hcb--modal .hcb-overlay { display: block; }

.hcb-logo { display: block; height: var(--hcb-logo-h, 40px); width: auto; max-width: 100%; margin: 0 0 12px; }

.hcb-dialog {
	position: relative;
	background: var(--hcb-bg, #fff);
	color: var(--hcb-text, #1f2328);
	border-radius: var(--hcb-radius, 10px);
	box-shadow: var(--hcb-shadow, 0 10px 40px rgba(0, 0, 0, .25));
	padding: 22px 24px;
	max-height: calc(100vh - 32px);
	overflow: auto;
}

.hcb-title { margin: 0 0 8px; font-size: 1.2em; font-weight: 700; line-height: 1.3; color: inherit; }
.hcb-text { margin: 0 0 16px; color: inherit; }
.hcb-text a,
.hcb-links a,
.hcb-cat a { color: var(--hcb-primary, #1a5fb4); text-decoration: underline; }

.hcb-details { margin: 0 0 16px; border-top: 1px solid rgba(127, 127, 127, .25); }
.hcb-cat { padding: 12px 0; border-bottom: 1px solid rgba(127, 127, 127, .25); }
.hcb-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; margin: 0; }
.hcb-cat p { margin: 4px 0 0; font-size: .87em; opacity: .85; }

.hcb-switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	margin: 0;
	border: 0;
	border-radius: 24px;
	background: #b9bdc3;
	cursor: pointer;
	transition: background .2s;
}
.hcb-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}
.hcb-switch:checked { background: var(--hcb-primary, #1a5fb4); }
.hcb-switch:checked::after { transform: translateX(20px); }
.hcb-switch:disabled { opacity: .55; cursor: not-allowed; }
.hcb-switch:focus-visible { outline: 2px solid var(--hcb-primary, #1a5fb4); outline-offset: 2px; }

.hcb-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/*
 * Buttons: bewusst hohe Spezifität (#id bzw. body + Klassen), damit Theme- und
 * Page-Builder-Styles für <button> (z. B. Hello Elementor #c36, Elementor-Kit) nicht greifen.
 */
#hcb-root .hcb-btn,
body .hcb-ph .hcb-btn.hcb-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid var(--hcb-primary, #1a5fb4);
	border-radius: var(--hcb-btn-radius, 8px);
	background: var(--hcb-primary, #1a5fb4);
	background-image: none;
	color: var(--hcb-primary-text, #fff);
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	font-style: normal;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
	letter-spacing: normal;
	white-space: normal;
	cursor: pointer;
	box-shadow: none;
	transition: filter .15s;
	filter: none;
}
#hcb-root .hcb-btn:hover,
#hcb-root .hcb-btn:focus,
#hcb-root .hcb-btn:active,
body .hcb-ph .hcb-btn.hcb-btn:hover,
body .hcb-ph .hcb-btn.hcb-btn:focus,
body .hcb-ph .hcb-btn.hcb-btn:active {
	background: var(--hcb-primary, #1a5fb4);
	background-image: none;
	color: var(--hcb-primary-text, #fff);
	border-color: var(--hcb-primary, #1a5fb4);
	text-decoration: none;
	box-shadow: none;
}
#hcb-root .hcb-btn:hover,
body .hcb-ph .hcb-btn.hcb-btn:hover { filter: brightness(1.1); }

#hcb-root .hcb-btn--ghost,
#hcb-root .hcb-btn--ghost:hover,
#hcb-root .hcb-btn--ghost:focus,
#hcb-root .hcb-btn--ghost:active,
body .hcb-ph .hcb-btn.hcb-btn--ghost,
body .hcb-ph .hcb-btn.hcb-btn--ghost:hover,
body .hcb-ph .hcb-btn.hcb-btn--ghost:focus,
body .hcb-ph .hcb-btn.hcb-btn--ghost:active {
	background: transparent;
	color: var(--hcb-primary, #1a5fb4);
}
#hcb-root .hcb-btn--ghost:hover,
body .hcb-ph .hcb-btn.hcb-btn--ghost:hover { filter: none; background: rgba(127, 127, 127, .08); }

#hcb-root .hcb-btn:focus:not(:focus-visible),
body .hcb-ph .hcb-btn.hcb-btn:focus:not(:focus-visible) { outline: none; }
#hcb-root .hcb-btn:focus-visible,
body .hcb-ph .hcb-btn.hcb-btn:focus-visible { outline: 3px solid var(--hcb-primary, #1a5fb4); outline-offset: 2px; }

/* Links gegen Theme-Linkfarben absichern */
#hcb-root a,
#hcb-root a:hover,
#hcb-root a:focus,
body .hcb-ph a.hcb-ph__link { color: var(--hcb-primary, #1a5fb4); text-decoration: underline; }

.hcb-links { margin: 12px 0 0; font-size: .87em; }

@media (max-width: 640px) {
	.hcb--bar { padding: 8px; }
	.hcb-dialog { padding: 18px; }
	.hcb-buttons { flex-direction: column; }
	#hcb-root .hcb-btn { width: 100%; }
}

/* Schwebender Button */
#hcb-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hcb-primary, #1a5fb4);
	color: var(--hcb-primary-text, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
}
#hcb-float:hover,
#hcb-float:focus,
#hcb-float:active { background: var(--hcb-primary, #1a5fb4); color: var(--hcb-primary-text, #fff); border: 0; filter: brightness(1.1); }
#hcb-float.hcb-float--right { left: auto; right: 16px; }
#hcb-float svg { width: 22px; height: 22px; fill: currentColor; }
#hcb-float:focus-visible { outline: 3px solid var(--hcb-primary, #1a5fb4); outline-offset: 3px; }

/* Platzhalter für blockierte iFrames */
.hcb-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 220px;
	padding: 24px;
	background: #f2f3f5;
	color: #1f2328;
	border: 1px solid #dcdfe3;
	border-radius: var(--hcb-radius, 8px);
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
}
.hcb-ph--abs { position: absolute; top: 0; right: 0; bottom: 0; left: 0; min-height: 0; }
.hcb-ph__text { margin: 0; max-width: 520px; }
.hcb-ph__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hcb-ph__link { font-size: 13px; color: var(--hcb-primary, #1a5fb4); }
